Bug report #3155

Zoom to layer works incorrectly while layer editing

Added by dr - over 6 years ago. Updated about 1 year ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Map Canvas
Target version:Future Release - Lower Priority
Platform:All Pull Request or Patch supplied:No
Platform version: Affected version:master
Status info:0 Causes crash or corruption:No
Resolution: Tag:

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.1 kB) sunilkcube -, 02/07/2011 04:26 am

Associated revisions

Revision 9b5c6831065cbaa2046a2fb0d27ba7ef2cd2211d
Added by Jürgen Fischer about 1 year ago

also recalculate layer extent after rollback (fixes #3155)

History

Updated by Maxim Dubinin over 6 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

Updated by sunilkcube - about 6 years ago

  • Status changed from Open to In Progress

Updated by Jürgen Fischer about 6 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.

Updated by Borys Jurgiel almost 6 years ago

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

Updated by sunilkcube - almost 6 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.

Updated by Borys Jurgiel almost 6 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.

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Paolo Cavallini almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0
  • Affected version set to master
  • Causes crash or corruption set to No

Updated by Paolo Cavallini over 4 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

Updated by Jürgen Fischer over 2 years ago

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

Updated by Médéric RIBREUX over 1 year ago

  • Status changed from In Progress to Feedback
  • Assigned to deleted (sunilkcube -)
  • Pull Request or Patch supplied set to No

Hello, bug triage...

this is still the case for QGIS 2.13 master...

Updated by Médéric RIBREUX about 1 year ago

  • Status changed from Feedback to Open

Updated by Jürgen Fischer about 1 year ago

  • Status changed from Open to Closed

Also available in: Atom