Skip to content
Permalink
Browse files

Fixed issue when using multiple vector inputs

  • Loading branch information
volaya committed Sep 24, 2013
1 parent 87163c6 commit 3b07aff497ac644a4649ca8d8ab49f9052c7077d
@@ -1,7 +1,7 @@
r.drain
r.drain - Traces a flow through an elevation model on a raster map.
Raster (r.*)
ParameterRaster|input|Elevatio|False
ParameterRaster|input|Elevation|False
ParameterString|coordinate|Map coordinates of starting point(s) (E,N)|(0,0)
ParameterMultipleInput|vector_points|Vector layer(s) containing starting point(s)|0|False
ParameterBoolean|-c|Copy input cell values on output|False
@@ -258,7 +258,7 @@ def getWidgetFromParameter(self, param):
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
options = dataobjects.getVectorLayers()
else:
options = dataobjects.getVectorLayers(param.datatype)
options = dataobjects.getVectorLayers([param.datatype])
opts = []
for opt in options:
opts.append(self.getExtendedLayerName(opt))
@@ -26,7 +26,6 @@
from processing.parameters.ParameterDataObject import ParameterDataObject
from processing.tools import dataobjects
from qgis.core import *
from processing.tools import dataobjects


class ParameterMultipleInput(ParameterDataObject):
@@ -27,7 +27,6 @@
from processing.parameters.ParameterDataObject import ParameterDataObject
from processing.tools import dataobjects
from qgis.core import *
from processing.tools import dataobjects

class ParameterVector(ParameterDataObject):

0 comments on commit 3b07aff

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