[QGIS-trac] [Quantum GIS] #1690: Tools->Research Tools->Select by location crashes with PostGIS-Layer

Quantum GIS qgis at qgis.org
Wed May 13 08:43:05 EDT 2009


#1690: Tools->Research Tools->Select by location crashes with PostGIS-Layer
---------------------------------------------------------+------------------
   Reporter:  hdus                                       |              Owner:  cfarmer      
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.2.0
  Component:  Plugins                                    |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  RedHat                                     |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 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)]
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1690>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list