[processing] make nodata parameter optional in gdal's warp algorithm

This commit is contained in:
nirvn 2018-07-16 09:38:31 +07:00 committed by Mathieu Pellerin
parent fdaff06abf
commit 863a2f0fca

View File

@ -90,7 +90,8 @@ class warp(GdalAlgorithm):
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,