[Qgis-developer] please help me write a QGIS-PostGIS GUI in Python

Gary Sherman sherman at mrcc.com
Sat Feb 2 13:28:03 EST 2008


On Feb 2, 2008, at 8:41 AM, Maciej Sieczka wrote:

> Gary Sherman pisze:
>> On Feb 1, 2008, at 1:16 PM, Maciej Sieczka wrote:
>>>
>>> Thanks Barry. You are a patient man, really. I certainly  
>>> underestimated
>>> how much work this would take. Seems I'll give in, at least for now.
>
>> I think you could approach this project differently. For one, you  
>> can use
>> the connections stored in the user preferences and offer them up in  
>> your
>> own dialog.
>
> Done that. Python plugin installer was a good example. Now I have to  
> learn how to extract connection parameters for psycopg.
>
> Question: would there be a benefit in using psycopg2 instead of  
> psycopg? There are both in the Kubuntu Gutsy repo.
>
Sure---I only used psycopg for my sample plugin because it was what  
was on the LiveCD for my workshop at FOSS4G2007.
To get connection parameters use QSettings. ZoomToPoint uses it to  
store some info so you could use it as an example.

-gary


-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Chair, QGIS Project Steering Committee
-Micro Resources: http://mrcc.com
   *Geospatial Hosting
   *Web Site Hosting
-Desktop GIS Book:
   *http://desktopgisbook.com
"We work virtually everywhere"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-




More information about the Qgis-developer mailing list