[Qgis-developer] Get Feature Id on clicked point

luca_manganelli at comune.trento.it luca_manganelli at comune.trento.it
Thu Mar 18 03:01:17 EDT 2010


qgis-developer-bounces at lists.osgeo.org scritti il 18/03/2010 06.05.29

> Hi All ,
> Thanks luca_manganelli for your reply it worked , I am able to fetch
> features, but still it is not giving accurate result it sometimes
> shows the Id of either adjacent Id or 2 Id ahead ,
> I reduced the QgsRect Area also but still problem continues
> .
> Stiil thanks a lot once again my biggest problem is solved.

Mmh...

there are some methods to resolve this problem:

 - calculate the nearest point from mouse click in the rectangle area
 - or, measure the shortest distance from two points and use that value as
tolerance in the QgsRectangle()



More information about the Qgis-developer mailing list