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

View differences:

ContainsEnvelopeEvaluator.java
42 42
    private final boolean isDefault;
43 43
    private final ExpressionBuilder builder;
44 44
    private final IProjection projection;
45

  
45
    private final FeatureAttributeDescriptor fad;
46
    
46 47
    /**
47 48
     * @deprecated  use @{link org.gvsig.fmap.mapcontext.layers.vectorial.SpatialEvaluatorsFactory}
48 49
     * @param envelope
......
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.isDefault = featureType.getDefaultGeometryAttributeName().equals(geomName);
78 78
        this.projection = envelopeProjection;
79 79
        this.builder = builder;
......
122 122
        return this.builder.set(
123 123
                builder.ST_Contains(
124 124
                        builder.envelope(envelope, projection),
125
                        builder.column(geomName)
125
                        builder.column(fad)
126 126
                )
127 127
        ).toString();
128 128
    }

Also available in: Unified diff