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/IntersectsGeometryEvaluator.java
IntersectsGeometryEvaluator.java | ||
---|---|---|
41 | 41 |
private final boolean isDefault; |
42 | 42 |
private final ExpressionBuilder builder; |
43 | 43 |
private final IProjection projection; |
44 |
|
|
44 |
private final FeatureAttributeDescriptor fad; |
|
45 |
|
|
45 | 46 |
/** |
46 | 47 |
* @param geometry |
47 | 48 |
* @param projection |
... | ... | |
71 | 72 |
String geomName, |
72 | 73 |
ExpressionBuilder builder |
73 | 74 |
) { |
74 |
FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) featureType
|
|
75 |
fad = (FeatureAttributeDescriptor) featureType |
|
75 | 76 |
.get(geomName); |
76 | 77 |
this.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName); |
77 | 78 |
this.geometry = geometry; |
... | ... | |
123 | 124 |
return builder.set( |
124 | 125 |
builder.ST_Intersects( |
125 | 126 |
builder.geometry(geometry, this.projection), |
126 |
builder.column(geomName)
|
|
127 |
builder.column(this.fad)
|
|
127 | 128 |
) |
128 | 129 |
).toString(); |
129 | 130 |
} |
Also available in: Unified diff