singleparts to multipart fails (python error) #18521
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: matteo ghetta (@ghtmtt)
Original Redmine Issue: 10040
Affected QGIS version: 2.2.0
Redmine category:processing/qgis
The tool works nice when the Unique ID field is a field of the table. It fails when the option merge - all is activated. Nothing is added to the map canvas.
I tried with different shapefiles but nothing changes. In attach you can find a sample file.
This is the error in the log:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 326, in run
success = self.single_to_multi()
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 396, in single_to_multi
if idVarMod == iMod or merge_all:
UnboundLocalError: local variable 'idVarMod' referenced before assignment
Python version:
2.7.3 (default, Mar 14 2014, 12:14:27)
[GCC 4.7.2]
QGIS version:
2.2.0-Valmiera Valmiera, exported
Python path: ['/home/ma7730/.qgis2/python/plugins/processing', '/usr/share/qgis/python', u'/home/ma7730/.qgis2/python', u'/home/ma7730/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/ma7730/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/share/qgis/python/plugins/fTools/tools', '/home/ma7730/.qgis2/python/plugins/midvatten']
The text was updated successfully, but these errors were encountered: