Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

singleparts to multipart fails (python error) #18521

Closed
qgib opened this issue Apr 9, 2014 · 5 comments
Closed

singleparts to multipart fails (python error) #18521

qgib opened this issue Apr 9, 2014 · 5 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Apr 9, 2014

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']


@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2014

Author Name: dr - (dr -)


Confirm this issue.

@qgib
Copy link
Contributor Author

qgib commented Apr 25, 2014

Author Name: Andrey Isakov (@Andrey-VI)


Yes, same issue.

@qgib
Copy link
Contributor Author

qgib commented Apr 29, 2014

@qgib
Copy link
Contributor Author

qgib commented May 4, 2014

Author Name: Salvatore Larosa (@slarosa)


Fixed in master. Please reopen if necessary.


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

@qgib qgib added 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 labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant