[Qgis-developer] dataSourceUri() and dictionary

Luca Casagrande luca.casagrande at gmail.com
Wed Mar 12 11:28:11 EDT 2008


Hello everybody.

This is my first python plugin, so sorry for newbie question :D

I need to alter the table of a postgis layer so the idea is to get all 
the information from provider.dataSourceUri():

dbname=test host=localhost port=5432 user=postgres password='postgres' 
table="test" (the_geom) sql=

Anyone got a way for converting that in a dictionary, without writing a 
dozen of lines?

Thank you very much!

Luca


More information about the Qgis-developer mailing list