Have a look at this good blog post from Nyall with QgsFeatureRequest: http://nyalldawson.net/2016/10/speeding-up-your-pyqgis-scripts/
2017-10-20 8:21 GMT+02:00 Pat Hin <ph...@gmx.de>: > Hello > > many thanks. > > the method ".setFilterExpression" has been the one i am looking for :) > > Many thanks :) > > Pat > > *Gesendet:* Donnerstag, 19. Oktober 2017 um 20:39 Uhr > *Von:* "Richard Duivenvoorde" <rdmaili...@duif.net> > *An:* "Pat Hin" <ph...@gmx.de>, "Luigi Pirelli" <lui...@gmail.com> > *Cc:* "qgis-userlists.osgeo.org" <qgis-user@lists.osgeo.org> > *Betreff:* Re: [Qgis-user] Select QGSFeature with given ID > On 19-10-17 18:27, Pat Hin wrote: > > Thank you > > > > i have done it but struggeld. but wil have a second try > > Did you found > > http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/ > > already? > > http://docs.qgis.org/testing/en/docs/pyqgis_developer_ > cookbook/vector.html#iterating-over-a-subset-of-features > > Regards, > > Richard Duivenvoorde > > _______________________________________________ > 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