<div dir="ltr"><div class="gmail_extra">We can make that even easier:</div><div class="gmail_extra"><br></div><div class="gmail_extra">toSelect = []<br></div><div class="gmail_extra">for feature in layer.getFeatures(QgsFeatureRequest(<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">‘“LWFLAGS” != \’P\’')):</span></div>
<div class="gmail_extra"> toSelect.append(<a href="http://feature.id">feature.id</a>())</div><div class="gmail_extra">layer.<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">setSelectedFeatures(</span>toSelect)</div>
<div class="gmail_extra"><br></div></div>