Hi,
I'm trying to change the datasource of a postgis layer created with RT SQL, I
mean, I want to make changes in the query after the layer is created.
I tried this:
l=qgis.utils.iface.activeLayer()
d=l.dataProvider()d.setDataSourceUri(u'dbname=\'postgis\' host.......')
l.reload()
It's ok, but nothing happens.Am I in the right path? What am I missing?
Pablo Torres Carreira
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user