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