Bug report #10641

python error in modules that allow multiple input vector selection

Added by Giovanni Manghi over 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19044

Description

example r.drain

tested on latest master

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 219, in accept
self.setParamValues()
File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 147, in setParamValues
self.paramTable.valueItems[param.name]):
File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutionDialog.py", line 203, in setParamValue
return param.setValue([options[i] for i in widget.selectedoptions])
File "/usr/share/qgis/python/plugins/processing/parameters/ParameterMultipleInput.py", line 74, in setValue
s += self.getAsString(layer)
File "/usr/share/qgis/python/plugins/processing/parameters/ParameterMultipleInput.py", line 152, in getAsString
layers = dataobjects.getVectorLayers(self.datatype)
File "/usr/share/qgis/python/plugins/processing/tools/dataobjects.py", line 81, in getVectorLayers
if shapetype == ALL_TYPES or layer.geometryType() in shapetype:
TypeError: argument of type 'float' is not iterable

Associated revisions

Revision 2e858c43
Added by Victor Olaya over 10 years ago

[processing] fixes #10641

History

#1 Updated by Giovanni Manghi over 10 years ago

  • Subject changed from pyhton error in modules that allow multiple input vector selection to python error in modules that allow multiple input vector selection

#2 Updated by Giovanni Manghi over 10 years ago

  • Target version set to Version 2.4

#3 Updated by Victor Olaya over 10 years ago

  • Status changed from Open to Closed

#4 Updated by Giovanni Manghi over 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF