Bug report #7090
ftools lines to polygons fails on a particular vector
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | Processing/QGIS | ||
Affected QGIS version: | master | Regression?: | |
Operating System: | Easy fix?: | ||
Pull Request or Patch supplied: | No | Resolution: | wontfix |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16172 |
Description
error is
@An error has occured while executing Python code:
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 347, in run
success = self.lines_to_polygons()
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 524, in lines_to_polygons
outFeat.setGeometry( QgsGeometry.fromPolygon( polyGeom ) )
TypeError: QgsFeature.setGeometry(QgsGeometry): argument 1 has unexpected type 'NoneType'
Python version:
2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
QGIS version:
1.9.0-Master Master, exported
Python path: ['/usr/share/qgis/python/plugins/sextante', '/home/gio/.qgis//python/plugins/permaclim', '/usr/share/qgis/python', '/home/gio/.qgis//python', '/home/gio/.qgis//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', '/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/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/home/gio/.qgis/python/plugins/mmqgis/forms', '/usr/share/qgis/python/plugins/fTools/tools']@
History
#1 Updated by maning sambale over 11 years ago
Confirmed error tested both in the:
Vector menu (fTools)
An error has occured while executing Python code:
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 347, in run
success = self.lines_to_polygons()
File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 515, in lines_to_polygons
outFeat.setGeometry( QgsGeometry.fromPolygon( polyGeom ) )
TypeError: QgsFeature.setGeometry(QgsGeometry): argument 1 has unexpected type 'NoneType'
Python version:
2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
QGIS version:
1.9.0-Master Master, exported
Python path: ['/usr/share/qgis/python/plugins/sextante', '/usr/share/qgis/python', '/home/maning/.qgis2/python', '/home/maning/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/local/lib/python2.7/dist-packages/docutils-0.7-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Jinja2-2.5.5-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Pygments-1.4-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/mbutil-0.0.1-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.2-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/rst2pdf-0.16-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/reportlab-2.5-py2.7-linux-x86_64.egg', '/usr/local/lib/python2.7/dist-packages/TracGit-0.11.0.2-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/sphinxcontrib_googlechart-0.1.5-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/funcparserlib-0.3.5-py2.7.egg', '/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', '/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/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-installer', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/share/qgis/python/plugins/fTools/tools', '/home/maning/Desktop/qgis_hackfest']
and also in Sextante.
#2 Updated by Giovanni Manghi over 11 years ago
no more error message, but it never ends to run.
#3 Updated by Giovanni Manghi over 11 years ago
- Target version set to Future Release - Nice to have
- Priority changed from Normal to Low
#4 Updated by Giovanni Manghi over 10 years ago
- Resolution set to wontfix
- Status changed from Open to Closed
looking at it better and I realized that is a very edge case... the lines that seems continuous are mostly split and anyway there is the problem of the line(s) delimiting the Mediterranean that would be originating an inverted polygon...
#5 Updated by Giovanni Manghi over 7 years ago
The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.