[Qgis-developer] postgis view source URI with key column doesn't load

G. Allegri giohappy at gmail.com
Mon Dec 3 10:51:54 PST 2012


I'm setting the URI of a PostGIS view layer in the following way:

> uri.setDataSource(schema,table,geom_column,'',key_column)

but the resulting layer has something wrong, eg layer.isValid() returns
False, and I can't load it.
I can load the same view through the GUI, settings the Primary Key Column
manually.
What's wrong with the way I'm using setDataSource?

giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121203/a50345cf/attachment.html>


More information about the Qgis-developer mailing list