[Qgis-user] QgsVectorLayer: SQL query

Pietro Panzeri pietro.panzeri at treuropa.com
Tue Dec 1 03:26:47 PST 2009


Hi all,

I'm trying to select features of a vector layer using an SQL query and show
only selected ones.
I used "Query builder" on "Attribute Table" but it's very slow when the
vlayer features are a lot (around 200000).

Can someone point me a way to select and show features using an SQL query
without opening the Attribute Table, for example using QgsVectorLayer class
via python plugin?

Thank you very much.

Pietro


-- 
Pietro Panzeri

Software Development Manager

Tele-Rilevamento Europa - T.R.E. srl
Via Vittoria Colonna, 7
20149 Milano – Italia
Tel.: +39.02.4343.121 - Fax: +39.02.4343.1230
pietro.panzeri at treuropa.com - www.treuropa.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20091201/48fa8b10/attachment.html>


More information about the Qgis-user mailing list