Bug report #19162
[Processing] GDAL translate sould not cast datatype by default
|Affected QGIS version:||3.0.3||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 #:||26991|
GDAL translate tool allows to setup output datatype, this is an usefull option but also an advanced one, and most the case user just wants to keep the original datatype as it. The first value in the drop down list is float32 so by default the tool always cast the datatype to float32 but, for example, translating an 8 bits RGB raster to 32 bits does not make really sense. If the user wants to maintain the original datatype he must determine it upstream and choose the correct value in the drop down list.