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

[processing] Fix constant raster cellsize - prefer cellsize over extent parameter #33771

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

root676
Copy link
Contributor

@root676 root676 commented Jan 13, 2020

Description

This PR proposes a fix of a bug in the Create constant raster layer algorithm which leads to rectangular (not square) pixels. The bug is caused because the input extent parameter is favored over the cellsize parameter.

This PR changes this behaviour and honors the input cellsize in order to achieve square pixels.
For reference, see old processing bugticket

This fix should possibly be backported.

Checklist

[x] Commit messages are descriptive and explain the rationale for changes
[x] Commits which fix bugs include Fixes #11111 at the bottom of the commit message
[x] I have read the QGIS Coding Standards and this PR complies with them
[ ] New unit tests have been added for core changes
[x] I have run the scripts/prepare-commit.sh script before each commit
[ ] I have evaluated whether it is appropriate for this PR to be backported, backport requests are left as label or comment

@github-actions github-actions bot added this to the 3.12.0 milestone Jan 13, 2020
@nyalldawson
Copy link
Collaborator

@alexbruy can i get a second opinion here?

Copy link
Contributor

@alexbruy alexbruy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to merge

@nyalldawson nyalldawson merged commit 4c495dc into qgis:master Jan 14, 2020
@root676 root676 deleted the fix_constantraster_cellsize branch January 16, 2020 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants