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/CrossesGeometryEvaluator.java
CrossesGeometryEvaluator.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); |
|
75 |
fad = (FeatureAttributeDescriptor) featureType.get(geomName); |
|
76 | 76 |
this.projection = projection; |
77 | 77 |
this.builder = builder; |
78 | 78 |
this.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName); |
... | ... | |
126 | 126 |
return this.builder.set( |
127 | 127 |
builder.ST_Crosses( |
128 | 128 |
builder.geometry(geometry, projection), |
129 |
builder.column(geomName)
|
|
129 |
builder.column(fad)
|
|
130 | 130 |
) |
131 | 131 |
).toString(); |
132 | 132 |
} |
Also available in: Unified diff