<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello Etienne,</div>

<div> </div>

<div>wonderful. </div>

<div>A lot of great tipps at least to review own code.</div>

<div>I have seen it before and the method .setSubsetOfAttributes has</div>

<div>saved me minutes of calculation times :)</div>

<div> </div>

<div>pat</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 20. Oktober 2017 um 08:39 Uhr<br/>
<b>Von:</b> "Etienne Trimaille" <etienne.trimaille@gmail.com><br/>
<b>An:</b> "Pat Hin" <phi73@gmx.de><br/>
<b>Cc:</b> richard@duif.net, "qgis-userlists.osgeo.org" <qgis-user@lists.osgeo.org><br/>
<b>Betreff:</b> Re: [Qgis-user] Select QGSFeature with given ID</div>

<div name="quoted-content">
<div>Have a look at this good blog post from Nyall with QgsFeatureRequest:
<div><a href="http://nyalldawson.net/2016/10/speeding-up-your-pyqgis-scripts/" target="_blank">http://nyalldawson.net/2016/10/speeding-up-your-pyqgis-scripts/</a></div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2017-10-20 8:21 GMT+02:00 Pat Hin <span><<a href="mailto:phi73@gmx.de" onclick="parent.window.location.href='phi73@gmx.de'; return false;" target="_blank">phi73@gmx.de</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hello</div>

<div> </div>

<div>many thanks.</div>

<div> </div>

<div>the method ".setFilterExpression" has been the one i am looking for :)</div>

<div> </div>

<div>Many thanks :)</div>

<div> </div>

<div>Pat</div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Donnerstag, 19. Oktober 2017 um 20:39 Uhr<br/>
<b>Von:</b> "Richard Duivenvoorde" <<a href="mailto:rdmailings@duif.net" onclick="parent.window.location.href='rdmailings@duif.net'; return false;" target="_blank">rdmailings@duif.net</a>><br/>
<b>An:</b> "Pat Hin" <<a href="mailto:phi73@gmx.de" onclick="parent.window.location.href='phi73@gmx.de'; return false;" target="_blank">phi73@gmx.de</a>>, "Luigi Pirelli" <<a href="mailto:luipir@gmail.com" onclick="parent.window.location.href='luipir@gmail.com'; return false;" target="_blank">luipir@gmail.com</a>><br/>
<span><b>Cc:</b> "<a href="http://qgis-userlists.osgeo.org" target="_blank">qgis-userlists.osgeo.org</a>" <<a href="mailto:qgis-user@lists.osgeo.org" onclick="parent.window.location.href='qgis-user@lists.osgeo.org'; return false;" target="_blank">qgis-user@lists.osgeo.org</a>><br/>
<b>Betreff:</b> Re: [Qgis-user] Select QGSFeature with given ID</span></div>

<div><span>On 19-10-17 18:27, Pat Hin wrote:<br/>
> Thank you<br/>
>  <br/>
> i have done it but struggeld. but wil have a second try<br/>
<br/>
Did you found<br/>
<br/>
<a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/" target="_blank">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/</a><br/>
<br/>
already?<br/>
<br/>
<a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/vector.html#iterating-over-a-subset-of-features" target="_blank">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/vector.html#iterating-over-a-subset-of-features</a><br/>
<br/>
Regards,<br/>
<br/>
Richard Duivenvoorde</span></div>
</div>
</div>
</div>
</div>
<br/>
_______________________________________________<br/>
Qgis-user mailing list<br/>
<a href="mailto:Qgis-user@lists.osgeo.org" onclick="parent.window.location.href='Qgis-user@lists.osgeo.org'; return false;" target="_blank">Qgis-user@lists.osgeo.org</a><br/>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br/>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
</div>
</div>
</div>
</div>
</div></div></body></html>