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/EqualsGeometryEvaluator.java

View differences:

EqualsGeometryEvaluator.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
......
73 74
    ) {
74 75
        this.builder = builder;
75 76
        this.projection = projection;
76
        FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) featureType
77
                .get(geomName);
77
        fad = (FeatureAttributeDescriptor) featureType.get(geomName);
78 78
        this.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName);
79 79
        this.geometry = geometry;
80 80
        this.geometryTrans = geometry.cloneGeometry();
......
126 126
        return this.builder.set(
127 127
                builder.ST_Equals(
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