It was an encoding problem with the parameters I passed to the URI. It
works fine now.

giovanni

2012/12/3 G. Allegri <gioha...@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
>
>
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to