Bug report #11531

Lines to polygons tool error

Added by Ammar Sh almost 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:2.4.0 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19801

Description

An error occurs when using the Lines to Polygons tool to convert multilines to polygons. The tool works on a test data with 27 features but fails when excecuting it on the actual dataset. The error that I am getting:

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\\processing\\core\\GeoAlgorithm.py", line 217, in execute
self.processAlgorithm(progress)
File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\\processing\\algs\\qgis\\ftools\\LinesToPolygons.py", line 72, in processAlgorithm
outFeat.setGeometry(QgsGeometry.fromPolygon(polyGeom))
TypeError: QgsFeature.setGeometry(QgsGeometry): argument 1 has unexpected type 'NoneType'

testData.zip (3.87 KB) Ammar Sh, 2014-11-03 05:26 AM

History

#1 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Open to Feedback

it works just fine on qgis 2.6 on Windows.

You should:

  • upgrade to qgis 2.6
  • check that in .qgis2/pyhton/plugins you don't have any "processing" folder, if you have delete that folder and restart qgis.

#2 Updated by Giovanni Manghi almost 6 years ago

  • Category changed from 44 to Processing/QGIS

#3 Updated by Alexander Bruy almost 6 years ago

Works fine here.

#4 Updated by Alexander Bruy over 5 years ago

  • Status changed from Feedback to Closed

Closed for the lack of feedback. Reopen if necessary

Also available in: Atom PDF