Skip to content

Commit 063c80e

Browse files
committedFeb 14, 2017
GDAL translate algorithm: Default value for EXPAND, make PROJWIN optional
1 parent eaa97f3 commit 063c80e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ def defineCharacteristics(self):
8080
self.tr("Nodata value, leave blank to take the nodata value from input"),
8181
'', optional=True))
8282
self.addParameter(ParameterSelection(self.EXPAND,
83-
self.tr('Expand'), ['none', 'gray', 'rgb', 'rgba']))
83+
self.tr('Expand'), ['none', 'gray', 'rgb', 'rgba'], default=0))
8484
self.addParameter(ParameterCrs(self.SRS,
8585
self.tr('Output projection for output file [leave blank to use input projection]'), None, optional=True))
8686
self.addParameter(ParameterExtent(self.PROJWIN,
87-
self.tr('Subset based on georeferenced coordinates')))
87+
self.tr('Subset based on georeferenced coordinates')), optional=True)
8888
self.addParameter(ParameterBoolean(self.SDS,
8989
self.tr('Copy all subdatasets of this file to individual output files'),
9090
False))

0 commit comments

Comments
 (0)
Please sign in to comment.