Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: pasting (or loading via .qml) a raster style changes layer extent #22973

Closed
qgib opened this issue Jun 13, 2016 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 13, 2016

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 15026
Affected QGIS version: master
Redmine category:symbology


When pasting a raster style (from layer A) onto another raster (layer B), QGIS now wrongly apply layer A's extent onto layer B. That pretty much renders that feature unusable for rasters.

Steps to reproduce

  1. Insert two rasters (A & B) with a different extent into a new project (for e.g. two LANDSAT scenes, two SRTM DEMs, etc.)
  2. Right click on one raster (A), and copy its style (through Style -> Copy style)
  3. Right click on the other raster (B), and paste the copied style (through Style -> Paste style)
  4. Notice the raster B goes missing
  5. Use the "Zoom to layer" action, notice how the canvas will zoom to the extent of raster A
@qgib
Copy link
Contributor Author

qgib commented Jun 13, 2016

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


The commit which led to this regression is d690d72

It also has broken loading of raster style via saved .qml files.


  • subject was changed from regression: pasting a raster style changes layer extent to regression: pasting (or loading via .qml) a raster style changes layer extent

@qgib
Copy link
Contributor Author

qgib commented Jun 13, 2016

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "6d1e55420664125b2ed91fc69703c5d08aecf8ba".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
@qgib qgib added this to the Version 2.16 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant