[Qgis-developer] postgis view source URI with key column doesn't load
G. Allegri
giohappy at gmail.com
Tue Dec 4 01:18:28 PST 2012
It was an encoding problem with the parameters I passed to the URI. It
works fine now.
giovanni
2012/12/3 G. Allegri <giohappy at gmail.com>
> 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/20121204/b2fe8e53/attachment.html>
More information about the Qgis-developer
mailing list