[processing] change nodata default to none instead of 0 in gdal's translate alg

This commit is contained in:
nirvn 2018-07-16 10:16:38 +07:00 committed by Mathieu Pellerin
parent ab3a213596
commit e9b6da1c48

View File

@ -69,7 +69,7 @@ class translate(GdalAlgorithm):
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
self.tr('Assign a specified nodata value to output bands'),
type=QgsProcessingParameterNumber.Double,
defaultValue=0.0,
defaultValue=None,
optional=True))
self.addParameter(QgsProcessingParameterBoolean(self.COPY_SUBDATASETS,
self.tr('Copy all subdatasets of this file to individual output files'),