Opened 14 years ago

Closed 13 years ago

#2597 closed bug (worksforme)

Adding layer is changed the last extent

Reported by: aperi2007 Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: MapCanvas Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: 7 Awaiting user input: no

Description

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.

Attachments (1)

esempio.zip (170.0 KB ) - added by aperi2007 14 years ago.
sample of shapefile epsg:3003

Download all attachments as: .zip

Change History (10)

comment:1 by lutra, 14 years ago

Hi, I cannot reproduce this behaviour on both windows seven and linux with qgis 1.4/trunk. I used also data from various sources.

in reply to:  1 comment:2 by aperi2007, 14 years ago

I see it with 1.5.0.

I can reproduce the bug:

Open qgis 1.5.0 trunk r13152. 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 lutra:

Hi, I cannot reproduce this behaviour on both windows seven and linux with qgis 1.4/trunk. I used also data from various sources.

comment:3 by lutra, 14 years ago

Hi,

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?

by aperi2007, 14 years ago

Attachment: esempio.zip added

sample of shapefile epsg:3003

in reply to:  3 comment:4 by aperi2007, 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.

https://trac.osgeo.org/qgis/attachment/ticket/2597/esempio.zip

Replying to lutra:

Hi,

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?

comment:5 by lutra, 14 years ago

Tested again with your data, still not reproducible. :( I guess we will need further feedback from other users.

comment:6 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

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.

in reply to:  6 comment:7 by aperi2007, 14 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 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.

comment:8 by aghisla, 13 years ago

Is it still reproducible, at least on Windows?

If I have one layer in canvas and I add a new layer that has a different bounding box, the extent remains unaltered with QGIS r15378 on Fedora.

comment:9 by gislab, 13 years ago

Resolution: worksforme
Status: newclosed

worksforme as well, WinXP, r15700 reopen if necessary

Note: See TracTickets for help on using tickets.