Bug report #3155
Zoom to layer works incorrectly while layer editing
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | Map Canvas | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 13215 |
Description
- Open raster layer (http://gis-lab.info/share/DR/modis.7z 404)
- Add new polygonal vector layer
- Draw little polygon in right top corner of raster;
- Stop editing and save changes;
- Make with zoom out tool raster layer looks like small rectangle in center of View;
- Toggle editing and draw new polygon in right top corner of view;
- Without stopping editing try make zoom to layer on vector layer;
- Looks like extent calculates incorrect.
- Stop editing, don't save changes and try zoom to vector layer again. Zoom to layer work incorrectly.
Associated revisions
also recalculate layer extent after rollback (fixes #3155)
History
#1 Updated by Maxim Dubinin about 14 years ago
5-7. I confirm, the extent looks wrong.
http://gis-lab.info/images/screenshots/20101028-69a-65kb.jpg
9. I confirm, after rejecting saving new polygon it seems that extent is still larger than small polygon on the raster.
http://gis-lab.info/images/screenshots/20101028-19d-62kb.jpg
#2 Updated by sunilkcube - almost 14 years ago
- Status changed from Open to In Progress
#3 Updated by Jürgen Fischer almost 14 years ago
Recalculating the extent on every editing operation could be quite expensive. So it might be useful to make this optional and disable "zoom to layer" while editing. There's also the issue of undo/redo.
#4 Updated by Borys Jurgiel over 13 years ago
What about recalculating the extent when the "zoom to layer" pressed (only if the layer is dirty).
#5 Updated by sunilkcube - over 13 years ago
Replying to [comment:4 borysiasty]:
The comment from Jef tells that calculating extents while editing is quite expensive.What about recalculating the extent when the "zoom to layer" pressed (only if the layer is dirty).
#6 Updated by Borys Jurgiel over 13 years ago
Replying to [comment:5 sunilkcube]:
The comment from Jef tells that calculating extents while editing is quite expensive.
Not exactly, the comment from Jef is about recalculating on every operation.
#7 Updated by Giovanni Manghi almost 13 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
#8 Updated by Paolo Cavallini over 12 years ago
- Affected QGIS version set to master
- Crashes QGIS or corrupts data set to No
- Target version changed from Version 1.7.4 to Version 1.8.0
#9 Updated by Paolo Cavallini about 12 years ago
- Target version changed from Version 1.8.0 to Version 2.0.0
#10 Updated by Jürgen Fischer over 10 years ago
- Target version changed from Version 2.0.0 to Future Release - Lower Priority
#11 Updated by Médéric RIBREUX almost 9 years ago
- Status changed from In Progress to Feedback
- Assignee deleted (
sunilkcube -) - Pull Request or Patch supplied set to No
Hello, bug triage...
this is still the case for QGIS 2.13 master...
#12 Updated by Médéric RIBREUX almost 9 years ago
- Status changed from Feedback to Open
#13 Updated by Jürgen Fischer over 8 years ago
- Status changed from Open to Closed
Fixed in changeset 9b5c6831065cbaa2046a2fb0d27ba7ef2cd2211d.