Revision 43739 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/vectorial/OverlapsGeometryEvaluator.java
OverlapsGeometryEvaluator.java | ||
---|---|---|
46 | 46 |
private final boolean isDefault; |
47 | 47 |
private final ExpressionBuilder builder; |
48 | 48 |
private final IProjection projection; |
49 |
private final FeatureAttributeDescriptor fad; |
|
49 | 50 |
|
50 | 51 |
/** |
51 | 52 |
* @param geometry |
... | ... | |
76 | 77 |
String geomName, |
77 | 78 |
ExpressionBuilder builder |
78 | 79 |
) { |
79 |
FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) featureType |
|
80 |
.get(geomName); |
|
80 |
fad = (FeatureAttributeDescriptor) featureType.get(geomName); |
|
81 | 81 |
this.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName); |
82 | 82 |
this.geometry = geometry; |
83 | 83 |
this.geometryTrans = geometry.cloneGeometry(); |
... | ... | |
132 | 132 |
return this.builder.set( |
133 | 133 |
builder.ST_Overlaps( |
134 | 134 |
builder.geometry(geometry, projection), |
135 |
builder.column(geomName)
|
|
135 |
builder.column(fad)
|
|
136 | 136 |
) |
137 | 137 |
).toString(); |
138 | 138 |
} |
Also available in: Unified diff