Opened 15 years ago

Closed 15 years ago

#1690 closed bug (duplicate)

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

Reported by: hdus Owned by: cfarmer
Priority: critical: causes crash or data corruption Milestone: Version 1.2.0
Component: C++ Plugins Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: RedHat
Platform Version: Awaiting user input: no

Description

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

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

Change History (1)

comment:1 by bjpfei, 15 years ago

Resolution: duplicate
Status: newclosed

see also Bug 1669

Note: See TracTickets for help on using tickets.