Details
-
Type:
Bug
-
Status:
Analysis
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: UDIG 1.1-RC11
-
Fix Version/s: UDIG 1.4.1
-
Component/s: tools and editing, visualization using map layer and style
-
Labels:None
Description
The problem is evident when using the Zoom to Layers button of the layers view.
Tested with PostGis Layers, not sure if the same happens with other kinds.
To reproduce:
- Zoom out a considerable amount so the current layer occupies a small area in the map
- Add a feature that is far away from the rest of features in the layer
- Commit
- Delete the just added feature
- Commit
- Zoom to Layer zooms to the extent including the just deleted feature. That is, a far longer area than the actual one.
By restarting uDig the problem disappears. So it might be some kind of cached extent not being updated.
MemoryDatastore adds a listener to the datastore when it is created (or rather when the info is created) and everytime an even comes in it recalculates its cache. What we need to do is create a super class for all Datastore IServices and IGeoResources that handles all of this sort of shared code. RIght now there is a horrendous amount of duplication between IServices and IGeoResources.