Skip to content
Permalink
Browse files

[sextante] fixed issue with blank spaces in filenames in OTB

  • Loading branch information
volaya committed Jun 6, 2013
1 parent 64a77af commit 17ca3008d17c0b25686cd5d8af0203e108a8bcf5
Showing with 5 additions and 3 deletions.
  1. +5 −3 python/plugins/sextante/otb/OTBAlgorithm.py
@@ -128,18 +128,20 @@ def processAlgorithm(self, progress):
commands.append(roiFile)
self.roiVectors[param.value] = roiFile
else:
commands.append(param.value)
commands.append("\"" + param.value+ "\"")
elif isinstance(param, ParameterRaster):
commands.append(param.name)
if self.hasROI:
roiFile = SextanteUtils.getTempFilename('tif')
commands.append(roiFile)
self.roiRasters[param.value] = roiFile
else:
commands.append(param.value)
commands.append("\"" + param.value+ "\"")
elif isinstance(param, ParameterMultipleInput):
commands.append(param.name)
commands.append(str(param.value.replace(";"," ")))
files = str(param.value).split(";")
paramvalue = " ".join(["\"" + f + "\"" for f in files])
commands.append(paramvalue)
elif isinstance(param, ParameterSelection):
commands.append(param.name)
idx = int(param.value)

0 comments on commit 17ca300

Please sign in to comment.
You can’t perform that action at this time.