Thank you
 
i have done it but struggeld. but wil have a second try
 
thanks
 
Gesendet: Donnerstag, 19. Oktober 2017 um 18:14 Uhr
Von: "Luigi Pirelli" <lui...@gmail.com>
An: "Pat Hin" <ph...@gmx.de>
Cc: "qgis-userlists.osgeo.org" <qgis-user@lists.osgeo.org>
Betreff: Re: [Qgis-user] Select QGSFeature with given ID
explore documentation about QgsFreatureRequest

QgsVectorLayer.getFeatures(QgsFreatureRequest(...))

regards
Luigi Pirelli

**************************************************************************************************
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**************************************************************************************************


On 19 October 2017 at 15:45, Pat Hin <ph...@gmx.de> wrote:
> Hello,
>
> i have a vector layer with more than 25k QGSFeature elements in it.
> By now i run over it by a loop and stop at the Feature with the given ID.
> But i know this amateurish and worser very slow if i need to run for it
> several times.
> So how could i do this more elegant and faster?
>
> Many thanks
> Pat
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to