[Qgis-developer] Annoying bug found in QGIS 1.7 (not present in 1.6)

Giovanni Manghi giovanni.manghi at gmail.com
Thu Jun 16 04:58:20 EDT 2011


Hi, did you filed a ticket?

cheers

-- Giovanni --

On Wed, 2011-06-15 at 14:18 +0200, luca_manganelli at comune.trento.it
wrote:
> Hi,
> 
> I wrote a PYTHON plugin that does a simple feature select on a
> QgsVectorLayer:
> 
> pnt = <coordinates of mouse click on map >
> myLayer= <QgsVectorLayer Object>
> tolerance = 1
> rectangle = QgsRectangle()
> rectangle.setXMinimum (pnt.x() - tolerance)
> rectangle.setXMaximum (pnt.x() + tolerance)
> rectangle.setYMinimum (pnt.y() - tolerance)
> rectangle.setYMaximum (pnt.y() + tolerance)
> myLayer.select(rectangle , True)
> 
> in QGIS 1.6 this code works with both shapefiles and postgis layers,
> in QGIS 1.7 it works ONLY in postgis layers, on shapefile layers it
> always returns 0 features.
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer




More information about the Qgis-developer mailing list