[processing] don't set any default value for optional NODATA parameter

in GDAL rastrize algorithm (fix #39752).

As this is optional parameter better to have it not set by default to
avoid unexpected conversion of valid values to nodata values.
This commit is contained in:
Alexander Bruy 2020-11-26 11:49:45 +02:00
parent c0a579c719
commit fe58d4956c

View File

@ -99,7 +99,6 @@ class rasterize(GdalAlgorithm):
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
self.tr('Assign a specified nodata value to output bands'),
type=QgsProcessingParameterNumber.Double,
defaultValue=0.0,
optional=True))
options_param = QgsProcessingParameterString(self.OPTIONS,