Revision 38417 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
343 | 343 |
|
344 | 344 |
public Envelope getEnvelope() throws DataException { |
345 | 345 |
if (this.mode == MODE_FULLEDIT) { |
346 |
return this.spatialManager.getEnvelope(); |
|
346 |
// Just in case another thread tries to write in the store |
|
347 |
synchronized (this) { |
|
348 |
return this.spatialManager.getEnvelope(); |
|
349 |
} |
|
347 | 350 |
} |
348 | 351 |
if (hasDynValue(DataStore.METADATA_ENVELOPE)){ |
349 | 352 |
return (Envelope)getDynValue(DataStore.METADATA_ENVELOPE); |
Also available in: Unified diff