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

Data Type Change in Clip Raster by Mask Layer #27925

Closed
qgib opened this issue Oct 13, 2018 · 1 comment
Closed

Data Type Change in Clip Raster by Mask Layer #27925

qgib opened this issue Oct 13, 2018 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Easy fix Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Oct 13, 2018

Author Name: Martin Lacayo (Martin Lacayo)
Original Redmine Issue: 20103
Affected QGIS version: 3.2.3
Redmine category:gdal_tools


In the Clip Raster by Mask Layer tool the default GDAL console call includes the -ot parameter with a default value of Float32. I believe this is unnecessary since in the absence of the parameter the input data type will be preserved. This could also be problematic when, like in my case, clipping a Byte raster without editing advanced parameters yields a Float32 raster. This will then break other tools like r.stats when trying to do pixel counts.

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2018

Author Name: Nyall Dawson (@nyalldawson)


Already fixed in 3.4


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Oct 13, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) Easy fix labels 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! Easy fix Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant