Revision 44022 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureAttributeDescriptor.java

View differences:

DefaultFeatureAttributeDescriptor.java
32 32
import org.apache.commons.lang3.ArrayUtils;
33 33
import org.cresques.cts.IProjection;
34 34
import org.gvsig.fmap.crs.CRSFactory;
35
import org.gvsig.fmap.dal.DataStore;
35 36
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
36 37
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
37 38
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator;
......
314 315
        return this.SRS;
315 316
    }
316 317

  
318
    public IProjection getSRS(WeakReference storeRef) {
319
        if( this.SRS==null ) {
320
            FeatureStore store = (FeatureStore) storeRef.get();
321
            this.SRS = (IProjection) store.getDynValue(DataStore.METADATA_CRS);
322
        }
323
        return this.SRS;
324
    }
325

  
326

  
317 327
    @Override
318 328
    public int getSize() {
319 329
        return this.size;

Also available in: Unified diff