From e9b6da1c489f7f6c38f6e8e817f68ea763875689 Mon Sep 17 00:00:00 2001 From: nirvn Date: Mon, 16 Jul 2018 10:16:38 +0700 Subject: [PATCH] [processing] change nodata default to none instead of 0 in gdal's translate alg --- python/plugins/processing/algs/gdal/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/algs/gdal/translate.py b/python/plugins/processing/algs/gdal/translate.py index 113d170d890..ffc4a186fd9 100644 --- a/python/plugins/processing/algs/gdal/translate.py +++ b/python/plugins/processing/algs/gdal/translate.py @@ -69,7 +69,7 @@ class translate(GdalAlgorithm): self.addParameter(QgsProcessingParameterNumber(self.NODATA, self.tr('Assign a specified nodata value to output bands'), type=QgsProcessingParameterNumber.Double, - defaultValue=0.0, + defaultValue=None, optional=True)) self.addParameter(QgsProcessingParameterBoolean(self.COPY_SUBDATASETS, self.tr('Copy all subdatasets of this file to individual output files'),