Bug report #1690

Tools->Research Tools->Select by location crashes with PostGIS-Layer

Added by Horst Düster over 13 years ago. Updated over 13 years ago.

Assignee:cfarmer -
Category:C++ Plugins
Affected QGIS version: Regression?:No
Operating System:RedHat Easy fix?:No
Pull Request or Patch supplied: Resolution:duplicate
Crashes QGIS or corrupts data: Copied to github as #:11750


The Tools->Research Tools->Select by location function only works with shape files. When I try to use it with the same layers from PostGIS I do get the following Python error message:

Traceback (most recent call last):
  File "/usr/local/qgis-trunk/share/qgis/python/plugins/fTools/tools/doSelectByLocation.py", line 52, in accept
    self.compute(inPoly, inPts, self.cmbModify.currentText())
  File "/usr/local/qgis-trunk/share/qgis/python/plugins/fTools/tools/doSelectByLocation.py", line 64, in compute
    geomLayer = [[QgsGeometry]](feat.geometry())
[[TypeError]]: argument 1 of [[QgsGeometry]]() has an invalid type

2.5.2 (r252:60911, May 27 2008, 09:12:11) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)]


#1 Updated by bjpfei - over 13 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

see also Bug 1669

Also available in: Atom PDF