GDAL translate algorithm: Default value for EXPAND, make PROJWIN optional

This commit is contained in:
Juernjakob Dugge 2017-02-14 21:56:55 +01:00
parent eaa97f367e
commit 063c80ee1d

View File

@ -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))