Bug report #8260

Point in polygon analysis fails with "TypeError: arguments did not match any overloaded call"

Added by Winston Smith over 7 years ago. Updated over 3 years ago.

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

Description

I am using QGIS 1.8 on Windows 7 (I've tried 1.8.0-5 and 1.8.0-7)

I want to perform a point in polygon analysis using the Vector > Analysis Tools menu.

My point layer is the result of a SpatiaLite query which returns 10'000 points.

My polygon layer is a simple shapefile with about 150 different polygons. Both layers are in WGS84 (EPSG:4326).

When I click the "OK" button in the Point in Polygon tool, just nothing happens. The progress bar stays at 0%, but I cannot click "Cancel" (i.e. nothing happens). I can click on the Close-Button in the upper right though, the window then disappears.

This works in the latest master of 1.9.

This is the output from the message log:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools\\doPointsInPolygon.py", line 215, in run
    tmpGeom = QgsGeometry(pntFeat.geometry())
TypeError: arguments did not match any overloaded call:
  QgsGeometry(): too many arguments
  QgsGeometry(QgsGeometry): argument 1 has unexpected type 'NoneType'

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]

QGIS version:
1.8.0-Lisboa Lisboa, f440b60

Python path: [...]

History

#1 Updated by Matthias Kuhn over 7 years ago

  • Operating System deleted (Windows)
  • Affected QGIS version changed from master to 1.8.0
  • OS version deleted (7)

#2 Updated by Giovanni Manghi over 7 years ago

  • Category changed from Vectors to 44
  • Resolution set to invalid
  • Status changed from Open to Closed

If it works on qgis master then there is nothing to do, as there are no backports.

If is not working on qgis master please reopen this ticket. Cheers!

#3 Updated by Giovanni Manghi over 3 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.

Also available in: Atom PDF