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/TouchesGeometryEvaluator.java
TouchesGeometryEvaluator.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 |
... | ... | |
69 | 70 |
String geomName, |
70 | 71 |
ExpressionBuilder builder |
71 | 72 |
) { |
72 |
FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) featureType |
|
73 |
.get(geomName); |
|
74 |
this.isDefault = featureType.getDefaultGeometryAttributeName().equals( |
|
75 |
geomName); |
|
73 |
fad = (FeatureAttributeDescriptor) featureType.get(geomName); |
|
74 |
this.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName); |
|
76 | 75 |
this.geometry = geometry; |
77 | 76 |
this.geometryTrans = geometry.cloneGeometry(); |
78 | 77 |
this.projection = projection; |
... | ... | |
125 | 124 |
return this.builder.set( |
126 | 125 |
builder.ST_Touches( |
127 | 126 |
builder.geometry(geometry, projection), |
128 |
builder.column(geomName)
|
|
127 |
builder.column(fad)
|
|
129 | 128 |
) |
130 | 129 |
).toString(); |
131 | 130 |
} |
Also available in: Unified diff