Skip to content
Permalink
Browse files
[otb] fix choice parameter
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@97 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 14, 2012
1 parent 11c7a83 commit b862f9e63cbf62fa9a71f69096346c3e82e62ffb
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/sextante/otb/OTBAlgorithm.py
@@ -9,6 +9,7 @@
from sextante.outputs.OutputRaster import OutputRaster
from sextante.parameters.ParameterVector import ParameterVector
from sextante.parameters.ParameterBoolean import ParameterBoolean
from sextante.parameters.ParameterSelection import ParameterSelection
from sextante.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from sextante.core.SextanteLog import SextanteLog
from sextante.parameters.ParameterFactory import ParameterFactory
@@ -73,6 +74,10 @@ def processAlgorithm(self, progress):
elif isinstance(param, ParameterMultipleInput):
commands.append(param.name)
commands.append(str(param.value.replace(";"," ")))
elif isinstance(param, ParameterSelection):
commands.append(param.name)
idx = int(param.value)
commands.append(str(param.options[idx]))
elif isinstance(param, ParameterBoolean):
if param.value:
commands.append(param.name)

0 comments on commit b862f9e

Please sign in to comment.