From 063c80ee1d10ddfee099df0163a54fbd5c89aa1e Mon Sep 17 00:00:00 2001 From: Juernjakob Dugge Date: Tue, 14 Feb 2017 21:56:55 +0100 Subject: [PATCH] GDAL translate algorithm: Default value for EXPAND, make PROJWIN optional --- python/plugins/processing/algs/gdal/translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/algs/gdal/translate.py b/python/plugins/processing/algs/gdal/translate.py index c5bf87a5f93..6c444026a41 100644 --- a/python/plugins/processing/algs/gdal/translate.py +++ b/python/plugins/processing/algs/gdal/translate.py @@ -80,11 +80,11 @@ class translate(GdalAlgorithm): self.tr("Nodata value, leave blank to take the nodata value from input"), '', optional=True)) self.addParameter(ParameterSelection(self.EXPAND, - self.tr('Expand'), ['none', 'gray', 'rgb', 'rgba'])) + self.tr('Expand'), ['none', 'gray', 'rgb', 'rgba'], default=0)) self.addParameter(ParameterCrs(self.SRS, self.tr('Output projection for output file [leave blank to use input projection]'), None, optional=True)) self.addParameter(ParameterExtent(self.PROJWIN, - self.tr('Subset based on georeferenced coordinates'))) + self.tr('Subset based on georeferenced coordinates')), optional=True) self.addParameter(ParameterBoolean(self.SDS, self.tr('Copy all subdatasets of this file to individual output files'), False))