mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix otbalgorithm when several band are selected
This commit is contained in:
parent
52f2a4d7bc
commit
454c4f6eba
@ -252,7 +252,8 @@ class OtbAlgorithm(QgsProcessingAlgorithm):
|
||||
elif isinstance(param, QgsProcessingParameterString):
|
||||
value = '"{}"'.format(self.parameterAsString(parameters, param.name(), context))
|
||||
elif isinstance(param, QgsProcessingParameterBand):
|
||||
value = '"Channel{}"'.format(self.parameterAsInt(parameters, param.name(), context))
|
||||
value = ' '.join(['"Channel{}"'.format(index) for index in
|
||||
self.parameterAsInts(parameters, param.name(), context)])
|
||||
else:
|
||||
# Use whatever is given
|
||||
value = '"{}"'.format(parameters[param.name()])
|
||||
|
Loading…
x
Reference in New Issue
Block a user