[Qgis-developer] RE: Generic OGR Database connection work

godofredo contreras frdcn at hotmail.com
Fri Mar 28 14:06:53 EDT 2008


> Date: Wed, 26 Mar 2008 19:30:01 -0400
> From: warmerdam at pobox.com
> To: frdcn at hotmail.com
> CC: tim at linfiniti.com
> Subject: Re: Generic OGR Database connection work
> 
> godofredo contreras wrote:
> > Hi Frank and Tim:
> > 
> > In the file attached are the documentation of plans for ogr database access in qgis
> > and the uml diagram of classes design. Any suggestions are welcome. Tim could you please
> > give me write access to wiki to publish this information?
> 
> Godofredo,
> 
> The plans look good in so far as I was able to understand the details.
> 
> I think it is important to preserve the "ogrGeneric" dialog where the
> user can enter any valid ogr connection string without it needing to
> be known apriori.
> 
> I think some of the specific dialogs (such as for ogrMysql) may be
> hard to keep strictly in sync with canges to the corresponding
> OGR drivers.  But the only fix I can think of is ogr providers
> describing their own parameters and I'm not ready for that.
> 
Yes you are right, the idea behind  this is to reuse the dialog 
for ogr database connections and for postgres connection
and use the class qgsdatasourceuri to create the uris for those
databases according to driver format. This is not completely automated
but it only needs to add some lines of code to qgsdatasourceuri to support
other ogr databases.
 
> I'm not too clear on the plan for export through OGR.  It may be I
> can provide some useful advice when that work commences.
> 
> BTW, I really don't understand the role of SPIT.  I gather from
> the name it is a shapefile to PostGIS import tool, but I don't understand
> the need for this specific case of what should presumably a fairly
> generic process (translation from format to format).
> 
SPIT is used to upload shapefiles to postgres database, the idea is to
update spit to be something like a graphical interface for ogr2ogr.


Best regards

Godofredo Contreras

_________________________________________________________________
In a rush?  Get real-time answers with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080328/7e5b9d12/attachment.html


More information about the Qgis-developer mailing list