Bug report #3155

Zoom to layer works incorrectly while layer editing

Added by dr - over 13 years ago. Updated about 8 years ago.

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

  1. Open raster layer (http://gis-lab.info/share/DR/modis.7z 404)
  2. Add new polygonal vector layer
  3. Draw little polygon in right top corner of raster;
  4. Stop editing and save changes;
  5. Make with zoom out tool raster layer looks like small rectangle in center of View;
  6. Toggle editing and draw new polygon in right top corner of view;
  7. Without stopping editing try make zoom to layer on vector layer;
  8. Looks like extent calculates incorrect.
  9. Stop editing, don't save changes and try zoom to vector layer again. Zoom to layer work incorrectly.

seq_-diagram.jpg - Sequence Diagram to illustrate the bug situation (111 KB) sunilkcube -, 2011-02-07 04:26 AM

Associated revisions

Revision 9b5c6831
Added by Jürgen Fischer about 8 years ago

also recalculate layer extent after rollback (fixes #3155)

History

#1 Updated by Maxim Dubinin over 13 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 - over 13 years ago

  • Status changed from Open to In Progress

#3 Updated by Jürgen Fischer about 13 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 about 13 years ago

What about recalculating the extent when the "zoom to layer" pressed (only if the layer is dirty).

#5 Updated by sunilkcube - about 13 years ago

Replying to [comment:4 borysiasty]:

What about recalculating the extent when the "zoom to layer" pressed (only if the layer is dirty).

The comment from Jef tells that calculating extents while editing is quite expensive.

#6 Updated by Borys Jurgiel about 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 over 12 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#8 Updated by Paolo Cavallini about 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 over 11 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#10 Updated by Jürgen Fischer almost 10 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#11 Updated by Médéric RIBREUX over 8 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 over 8 years ago

  • Status changed from Feedback to Open

#13 Updated by Jürgen Fischer about 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF