Skip to content

Commit

Permalink
[processing] don't set any default value for optional NODATA parameter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexbruy committed Nov 27, 2020
1 parent c0a579c commit fe58d49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/plugins/processing/algs/gdal/rasterize.py
Expand Up @@ -99,7 +99,6 @@ def initAlgorithm(self, config=None):
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,
Expand Down

0 comments on commit fe58d49

Please sign in to comment.