Skip to content

Commit 0340320

Browse files
committed
[processing] fix wrong ParameterSelection definition
1 parent d129f8a commit 0340320

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def defineCharacteristics(self):
8080
self.tr('Pixel size to be used for the output file (XSIZE YSIZE like 512 512)'),
8181
None, False, True))
8282
params.append(ParameterSelection(self.ALGORITHM,
83-
self.tr('Resampling algorithm'), self.ALGO, 0, False, True))
83+
self.tr('Resampling algorithm'), self.ALGO, 0, False, optional=True))
8484
params.append(ParameterCrs(self.S_SRS,
8585
self.tr('Override source CRS'), None, True))
8686
params.append(ParameterNumber(self.PYRAMIDLEVELS,
@@ -91,10 +91,10 @@ def defineCharacteristics(self):
9191
False, True))
9292
params.append(ParameterSelection(self.RTYPE,
9393
self.tr('Output raster type'),
94-
self.TYPE, 5, False, True))
94+
self.TYPE, 5, False, optional=True))
9595
params.append(ParameterSelection(self.FORMAT,
9696
self.tr('Output raster format'),
97-
list(GdalUtils.getSupportedRasters().keys()), 0, False, True))
97+
list(GdalUtils.getSupportedRasters().keys()), 0, False, optional=True))
9898
params.append(ParameterBoolean(self.USEDIRFOREACHROW,
9999
self.tr('Use a directory for each row'),
100100
False, True))

0 commit comments

Comments
 (0)