[Qgis-developer] Select By Attribute

Michael McInnis mmcinnis59 at msn.com
Fri Feb 28 06:49:13 PST 2014


Oh, Man, Thanks ! 
I can't wait to work with this today !

Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701

From: madmanwoo at gmail.com
Date: Fri, 28 Feb 2014 16:26:06 +1000
Subject: Re: [Qgis-developer] Select By Attribute
To: denis.rouzaud at gmail.com
CC: mmcinnis59 at msn.com; qgis-developer at lists.osgeo.org

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/55996238/attachment.html>


More information about the Qgis-developer mailing list