Skip to content

Commit dc2a1c5

Browse files
nirvnnyalldawson
authored andcommittedJul 16, 2018
[processing] make nodata parameter optional in gdal's warp algorithm
1 parent 4807611 commit dc2a1c5

File tree

1 file changed

+2
-1
lines changed
  • python/plugins/processing/algs/gdal

1 file changed

+2
-1
lines changed
 

‎python/plugins/processing/algs/gdal/warp.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def initAlgorithm(self, config=None):
9090
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
9191
self.tr('Nodata value for output bands'),
9292
type=QgsProcessingParameterNumber.Double,
93-
defaultValue=0.0))
93+
defaultValue=None,
94+
optional=True))
9495
self.addParameter(QgsProcessingParameterNumber(self.TARGET_RESOLUTION,
9596
self.tr('Output file resolution in target georeferenced units'),
9697
type=QgsProcessingParameterNumber.Double,

0 commit comments

Comments
 (0)
Please sign in to comment.