[QGIS-trac] Re: [Quantum GIS] #2658: QgsVectorLayer.select( QgsVectorLayer.extent(), true) does not return all features

Quantum GIS qgis at qgis.org
Wed May 5 06:06:43 EDT 2010


#2658: QgsVectorLayer.select( QgsVectorLayer.extent(), true) does not return all
features
-----------------------------------------------------+----------------------
        Reporter:  ersts                             |         Owner:  nobody       
            Type:  bug                               |        Status:  closed       
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Vectors                           |       Version:  HEAD         
      Resolution:  wontfix                           |      Keywords:               
Platform_version:  Ubuntu 10.04                      |      Platform:  Linux        
        Must_fix:  Yes                               |   Status_info:  0            
-----------------------------------------------------+----------------------
Changes (by wonder):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 Peter,

 you should use empty extent {{{QgsRectangle()}}} to tell the layer that
 you need all features. That is not only safer, but can be also faster as
 there is no spatial filtering going on.

 I believe the problem is caused by some subtle differences among the
 values of floating point numbers of coordinates. For example, extent
 passed to PostGIS database is first encoded as a string and then decoded
 back to double value, so there is obvious space for loosing the precision.

 Martin

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