Skip to content

Commit

Permalink
[sextante] fix handling of vectors in scripts and R providers (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Aug 19, 2013
1 parent 3b70bcc commit 3387b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/sextante/r/RAlgorithm.py
Expand Up @@ -152,7 +152,7 @@ def processParameterLine(self,line):
if tokens[1].lower().strip().startswith("raster"):
param = ParameterRaster(tokens[0], desc, False)
elif tokens[1].lower().strip() == "vector":
param = ParameterVector(tokens[0], desc,ParameterVector.VECTOR_TYPE_ANY)
param = ParameterVector(tokens[0], desc, [ParameterVector.VECTOR_TYPE_ANY])
elif tokens[1].lower().strip() == "table":
param = ParameterTable(tokens[0], desc, False)
elif tokens[1].lower().strip().startswith("multiple raster"):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/sextante/script/ScriptAlgorithm.py
Expand Up @@ -123,7 +123,7 @@ def processParameterLine(self,line):
if tokens[1].lower().strip() == "raster":
param = ParameterRaster(tokens[0], desc, False)
elif tokens[1].lower().strip() == "vector":
param = ParameterVector(tokens[0], desc,ParameterVector.VECTOR_TYPE_ANY)
param = ParameterVector(tokens[0], desc, [ParameterVector.VECTOR_TYPE_ANY])
elif tokens[1].lower().strip() == "table":
param = ParameterTable(tokens[0], desc, False)
elif tokens[1].lower().strip() == "multiple raster":
Expand Down

0 comments on commit 3387b66

Please sign in to comment.