Bug report #18446

Can't set an exact pixel size when creating constant raster layer

Added by Spencer Gardner over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:3.0.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26334

Description

[copied from issue filed on Github: https://github.com/qgis/QGIS-Processing/issues/82]

I need to generate a raster layer that has an exact pixel size of 5 meters. When I grab the extents from a vector layer and set a pixel value of 5 I get an output with pixel sizes that are just slightly lower than 5. This happens even if I set the extents to be numbers divisible by 5.

Ideally there should be a checkbox or something to let me indicate whether I want to cheat on the extent or on the cell size, but at the very least I should be getting a cell size of 5 if my extents are multiples of 5, right? Have I misunderstood something?

Associated revisions

Revision 8c689b2d
Added by Nyall Dawson over 2 years ago

[processing] Fix create constant raster layer modifies pixel size

Fixes #18446

History

#1 Updated by Nyall Dawson over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF