Skip to content
Permalink
Browse files

[sextante] fix handling of vectors in scripts and R providers (closes #…

  • Loading branch information
alexbruy committed Aug 19, 2013
1 parent 3b70bcc commit 3387b66f4f8cff78118fd4d13a98ed6038ab0b81
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/plugins/sextante/r/RAlgorithm.py
  2. +1 −1 python/plugins/sextante/script/ScriptAlgorithm.py
@@ -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"):
@@ -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":

0 comments on commit 3387b66

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