Bug report #18895

Translate (convert format) ignores nodata value of zero

Added by Keith Jenkins over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/GDAL
Affected QGIS version:3.0.2 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26727

Description

When using the "Translate (convert format)" processing tool in QGIS 3.0.2, it is not possible to specify a NODATA value of zero. In the tool dialog, it will add the -a_nodata parameter to the gdal_translate command for non-zero values, but omits the -a_nodata parameter entirely when the value is 0.

In QGIS 2.18.19, the dialog had a checkbox to control whether to include the -a_nodata parameter, and it was possible to specific a zero nodata value.

History

#1 Updated by Nyall Dawson over 2 years ago

  • Status changed from Open to In Progress

#2 Updated by Nyall Dawson over 2 years ago

  • Resolution set to fixed/implemented
  • Status changed from In Progress to Closed

Also available in: Atom PDF