Skip to content

Commit

Permalink
[processing] make nodata parameter optional in gdal's warp algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2018
1 parent 4807611 commit dc2a1c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/gdal/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterNumber(self.NODATA,
self.tr('Nodata value for output bands'),
type=QgsProcessingParameterNumber.Double,
defaultValue=0.0))
defaultValue=None,
optional=True))
self.addParameter(QgsProcessingParameterNumber(self.TARGET_RESOLUTION,
self.tr('Output file resolution in target georeferenced units'),
type=QgsProcessingParameterNumber.Double,
Expand Down

0 comments on commit dc2a1c5

Please sign in to comment.