[Qgis-developer] please help me write a QGIS-PostGIS GUI in
Python
Alessandro Pasotti
apasotti at gmail.com
Tue Feb 5 15:39:49 EST 2008
2008/2/5, Maciej Sieczka <tutey at o2.pl>:
> Hi
>
> I've made the whole thing functional enough to use it I think. I can't
> make the TreeView selector work, but anyway. The outline of current
> functionality of the attached code:
>
>
> I wish to extend the plugin with this functionality. As well as allowing
> for removing tables, managing database connections and letting choose
> coordinate system from the QGIS projection dialog instead of giving a
> plain SRID number.
>
You could also use pieces of my code that creates a combo from a query
on spatial_ref_sys and let the user choose from the list.
> PROBLEMS:
>
> 2. How to catch non-PostgreSQL compliant table and column names in the
> script best? Currently only psycopg catches them at it's own and returns
> the error from Postgres, but is not informative enough sometimes for an
> average user.
Perhaps you could add a on_YOURWIDGET_textChanged() callback and
remove wierd characters from the field? Ugly, but it should work.
--
Alessandro Pasotti
w3: www.itopen.it
More information about the Qgis-developer
mailing list