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

View differences:

ContainsGeometryEvaluator.java
42 42
    private final boolean isDefault;
43 43
    private final ExpressionBuilder builder;
44 44
    private final IProjection projection;
45
    private final FeatureAttributeDescriptor fad;
45 46

  
46 47
    /**
47 48
     * @param geometry
......
72 73
            String geomName,
73 74
            ExpressionBuilder builder
74 75
    ) {
75
        FeatureAttributeDescriptor fad = (FeatureAttributeDescriptor) featureType
76
                .get(geomName);
76
        fad = (FeatureAttributeDescriptor) featureType.get(geomName);
77 77
        this.projection = projection;
78 78
        this.builder = builder;
79 79
        this.isDefault = featureType.getDefaultGeometryAttributeName().equals(
......
127 127
        return this.builder.set(
128 128
                builder.ST_Contains(
129 129
                        builder.geometry(geometry, projection),
130
                        builder.column(geomName)
130
                        builder.column(fad)
131 131
                )
132 132
        ).toString();
133 133
    }

Also available in: Unified diff