mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-19 00:07:15 -04:00
[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:
parent
c0a579c719
commit
fe58d4956c
@ -99,7 +99,6 @@ class rasterize(GdalAlgorithm):
|
|||||||
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
|
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
|
||||||
self.tr('Assign a specified nodata value to output bands'),
|
self.tr('Assign a specified nodata value to output bands'),
|
||||||
type=QgsProcessingParameterNumber.Double,
|
type=QgsProcessingParameterNumber.Double,
|
||||||
defaultValue=0.0,
|
|
||||||
optional=True))
|
optional=True))
|
||||||
|
|
||||||
options_param = QgsProcessingParameterString(self.OPTIONS,
|
options_param = QgsProcessingParameterString(self.OPTIONS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user