[Qgis-developer] Select By Attribute
Nathan Woodrow
madmanwoo at gmail.com
Thu Feb 27 22:26:06 PST 2014
We can make that even easier:
toSelect = []
for feature in layer.getFeatures(QgsFeatureRequest('"LWFLAGS" != \'P\'')):
toSelect.append(feature.id())
layer.setSelectedFeatures(toSelect)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140228/985ca4b2/attachment.html>
More information about the Qgis-developer
mailing list