[QGIS-trac] Re: [Quantum GIS] #1669: ftools: error in select by location

Quantum GIS qgis at qgis.org
Fri Jul 10 04:06:33 EDT 2009


#1669: ftools: error in select by location
-----------------------------------------------------+----------------------
        Reporter:  bjpfei                            |         Owner:  cfarmer      
            Type:  bug                               |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.2.0
       Component:  Plugins                           |       Version:  HEAD         
      Resolution:                                    |      Keywords:               
Platform_version:                                    |      Platform:  RedHat       
        Must_fix:  Yes                               |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by lutra):

 Ok, confirmed also this error when using postgis layers:



 {{{
 An error has occured while executing Python code:

 Traceback (most recent call last):
   File
 "/usr/local/share/qgis/python/plugins/fTools/tools/doSelectByLocation.py",
 line 52, in accept
     self.compute(inPoly, inPts, self.cmbModify.currentText())
   File
 "/usr/local/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.6.2 (release26-maint, Apr 19 2009, 02:11:59)
 [GCC 4.3.3]

 Python path:['/usr/local/share/qgis/python',
 '/home/gio/.qgis//python/plugins', '/usr/local/share/qgis/python/plugins',
 '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
 '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-
 packages/gst-0.10', '/var/lib/python-support/python2.6',
 '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-
 support/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-
 unicode', '/usr/local/lib/python2.6/dist-packages',
 '/usr/local/share/qgis/python/plugins/fTools/tools']
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1669#comment:3>
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