Revision 47034 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/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
1323 | 1323 |
|
1324 | 1324 |
// TODO implementar un dispose para estos dos |
1325 | 1325 |
featureManager = null; |
1326 |
if (spatialManager != null) { |
|
1327 |
spatialManager.clear(); |
|
1328 |
} |
|
1326 | 1329 |
spatialManager = null; |
1327 | 1330 |
|
1328 | 1331 |
featureCount = null; |
... | ... | |
1375 | 1378 |
invalidateIndexes(); |
1376 | 1379 |
featureManager = new FeatureManager(this); |
1377 | 1380 |
featureTypeManager = new FeatureTypeManager(this); |
1378 |
spatialManager = new SpatialManager(this, provider.getEnvelope());
|
|
1381 |
spatialManager = new SpatialManager(this); |
|
1379 | 1382 |
|
1380 | 1383 |
commands = new DefaultFeatureCommandsStack( |
1381 | 1384 |
this, featureManager, |
... | ... | |
1939 | 1942 |
|
1940 | 1943 |
@Override |
1941 | 1944 |
synchronized public void cancelEditing() throws DataException { |
1942 |
if (spatialManager != null) { |
|
1943 |
spatialManager.cancelModifies(); |
|
1944 |
} |
|
1945 | 1945 |
try { |
1946 | 1946 |
switch (mode) { |
1947 | 1947 |
case MODE_QUERY: |
... | ... | |
2268 | 2268 |
invalidateIndexes(); |
2269 | 2269 |
featureManager = new FeatureManager(this); |
2270 | 2270 |
featureTypeManager = new FeatureTypeManager(this); |
2271 |
spatialManager = new SpatialManager(this, provider.getEnvelope());
|
|
2271 |
spatialManager = new SpatialManager(this); |
|
2272 | 2272 |
|
2273 | 2273 |
commands |
2274 | 2274 |
= new DefaultFeatureCommandsStack(this, featureManager, |
... | ... | |
3888 | 3888 |
} |
3889 | 3889 |
|
3890 | 3890 |
public FeatureType getOriginalFeatureType(FeatureType featureType) { |
3891 |
// FIXME this don't work for Store.fType.size() > 1 |
|
3891 |
// FIXME this don't work for Store.featureTypes.size() > 1 |
|
3892 |
|
|
3892 | 3893 |
FeatureTypeManager manager = this.featureTypeManager; |
3893 | 3894 |
if (manager == null) { |
3894 | 3895 |
return null; |
Also available in: Unified diff