[Qgis-developer] Qgis Api - select all features of a vector layer

kimaidou kimaidou at gmail.com
Tue Nov 9 11:22:27 EST 2010


Hi again

Still working on my python plugin...

I need to simply select all the features of a chosen vector layer. In
QgsVectorLayer api, there is no method "selectAllFeatures()"

So I use this piece of code to achieve it
http://osgeo.pastebin.com/Ma9DxgKR

* Is there a better way to do so ?
* Do you think a method selectAllFeatures() would be usefull ? If so I will
add it to the trac.

Thx again,

Kimaidou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20101109/f534ec41/attachment.html


More information about the Qgis-developer mailing list