Bug report #7840

Doesn't Zoom to max extent when adding multiple layers

Added by Jonathan Moules over 11 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:16722

Description

I start QGIS (build 226c524 - windows)
I add two GeoTiff's at the same time using the "Add a raster layer". In the "File name" bit at the bottom it shows:
"SK00_Colour.tif" "SP02_Colour.tif"

When the two layers are added, both are enabled, but it has only viewed to the extent of SK00, not the two of them.

Shouldn't it zoom to the max extent of all added layers, not just one of them?

DSM_2m_1km_ASCII_Grid_Tiles.zip (1.01 MB) Jonathan Moules, 2013-06-25 04:27 AM

History

#1 Updated by Giovanni Manghi over 11 years ago

  • Status changed from Open to Feedback

it works fine here, can you attach sample data/project?

#2 Updated by Jonathan Moules over 11 years ago

Sorry for the delay. Re-tested, this time with some .asc files. Happens here too. Data is in EPSG:27700. See attached.

#3 Updated by Jürgen Fischer over 11 years ago

Adding layers usually doesn't change the extent of the project - only for the very first layer in the project sets the extent.

#4 Updated by Jonathan Moules over 11 years ago

But these two are the very first layers in the project is the problem (fresh start of QGIS).
Both are added at the same time.

#5 Updated by Jürgen Fischer over 11 years ago

Jonathan Moules wrote:

But these two are the very first layers in the project is the problem (fresh start of QGIS).
Both are added at the same time.

"There can be only one"

#6 Updated by Jonathan Moules over 11 years ago

Jürgen Fischer wrote:

Jonathan Moules wrote:

But these two are the very first layers in the project is the problem (fresh start of QGIS).
Both are added at the same time.

"There can be only one"

:-)

That's the bug though. If I add multiple files it should zoom to the extent of all of them, not just a seemingly random single file.

#7 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

The layer tree now implements this.

Also available in: Atom PDF