Skip to content

Commit aa86281

Browse files
authored
Merge pull request #4146 from jdugge/master
[processing] gdal translate fixes
2 parents f587ae5 + f2ac88b commit aa86281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)