Bug report #2597
Adding layer is changed the last extent
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
Starting from a canvas with some layer and an extent of details.
If a new layer is added, the canvas go to full-extent drawing all in canvas.
The canvas is redra with a full-extent of layers.
This is time consuming for big layers, but the bigger problem is that the last extent is lost so is pretty difficult find the original extent when the new layer was added.
Some versione ago was possibile use the "last zoom" button to go to the original extent.
Now that button is disabled when a new layer is added.
#2 Updated by aperi2007 - almost 14 years ago
I see it with 1.5.0.
I can reproduce the bug:
Open qgis 1.5.0 trunk .
Add a shapefile in EPSG:3003 (I don't know if it is an epsg-related bug)
I zoom to a bigger detail (call this "working-extent" for semplicity).
Now if I add to canvas another shapefile (even the same shapefile 2 times)
The canvas go automatically to full-extent.
After add this second layer the "back" (or last-extent) button is disabled, so is impossible to return to the "working extent".
Of course if I start to zoom the back-button is usable, but is lost the "working-extent".
Perhaps is a bug related to epsg:3003 ?
Add another hint:
If I use the 1.0 version of qgis.
When add the second layer, the canvas go to the full-extent , but the back-button is enabled so is possible return immediately to the "working-extent".
Replying to [comment:1 lutra]:
I cannot reproduce this behaviour on both windows seven and linux with qgis 1.4/trunk. I used also data from various sources.
#4 Updated by aperi2007 - almost 14 years ago
I tested it on winXP 32bit and on win7 ultimate 64bit.
I confirm the bug :(
I try even to change the international settings (in italy we use the , for decimal).
But both the case the bug is always.
I put the shapefile I'm using for this testing.
Replying to [comment:3 lutra]:
tested again under win Seven (ultimate 32 bit)/Linux with a 3003 dataset, and still not confirming the behaviour.
Can you test on another machine and/or send a sample dataset?
#7 Updated by aperi2007 - over 13 years ago
Just tested with last version of qgis 1.5 trunk.
Yes, I confirm it.
I start qgis, uncheck the option
"by default new layers added should be displayed" (to avoid time lost to rendering big archives).
add a shapefile, and zoom to a big details on it. For example 1:2500.
After I load a new shapefile (incidentally is the same shapefile).
With this action the canvas change the visible extent settings it to the new extent (1:163.000)
So I lost the specific point where I'm working :( .
I think the new extent displayed is based on the merge of the two layers (incidentally are the same).
This is quite boring, but with older version of qgis I hovewer could use the "zoom last" button to return to the original extent where the canvas was before to add the new layer (the bigger details). And this was a work-around to avoid lost the location where I'm working.
Now qgis seem to reset the old-extent so the button "zoom last" is disable after added a new layer.
So I think this is very unusable.
The better choice is surely don't change the visible extent when adding a new layer, but if this is not possible a second choice is permit to use the "zoom last" button to return to the extent where I was working.
Replying to [comment:6 pcav]:
Perhaps I did not understand, but I cannot confirm this misbehaviour.
Please aperi2007 test it again, if possible on a different machine, to see if we can close this.