[Qgis-user] pyqgis - adding an ogr vector layer and setting where clause

Duarte Carreira DCarreira at edia.pt
Mon Oct 10 05:06:01 PDT 2011


Hi there.

I would like to add a layer from an ogr source, and apply a -where option. How can this be done in QGIS through the python API?

I have seen examples of setting a uri string and using addvectorlayer. But this doesn't set a query.

Thanks,
Duarte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20111010/8b82fae4/attachment.html>


More information about the Qgis-user mailing list