[Qgis-developer] Open vector dialog

godofredo contreras frdcn at hotmail.com
Thu Feb 5 15:22:01 EST 2009


> From: tim at linfiniti.com> To: qgis-developer at lists.osgeo.org; warmerdam at pobox.com> Subject: Re: [Qgis-developer] Open vector dialog> Date: Thu, 5 Feb 2009 07:02:37 +0200> CC: frdcn at hotmail.com> > Hi Godofredo> > On Wednesday 04 February 2009 21:41:30 godofredo contreras wrote:> > Hi developers:> >> > I've been working in a replacement for open vector dialog. The ideas behind> > this work are:> >> > support multilayer formats> > support more ogr formats> > support for opening database layers> > support of service layers> >> > To reach this goal I started classifying the ogr drivers as:> >> > File based> > Directory based> > Database based> > Service based> >> > This sounds like a good classification - perhaps Frank or others have more > thoughts on this,> > > There are a lot of formats in ogr and the question that come to my> > mind is should qgis support as many formats as there are in ogr or> > choose just some of them? in the other hand there are some drivers> > for formats I don`t know and I'm not sure if I classified them correctly> > and if I set the file filters correctly.> > My personal feeling is that if we can open every supported format that the > particular OGR/GDAL on the users machine was compiled with it would be first > prize.> > >> > Attached is doc file with the classification and the "yes"> > in column "qgis supported" means I have opened layers of that format.> >> > Any fixes to classification list are welcome as well as any comment.> > In the few minutes I had to look at your list you classification seemed right > to me. Does this imply we will need to create a programmatic master list for > QGIS to read and associate with GDAL formats? Perhaps indicating wich category > the format fits into would be something Frank would consider adding to the next > iteration of GDAL/OGR so that we always have a current classification list > regardless of which >= current version of gdal the user has.> 
Yes, it is neccesary to create the list. Actually the ogr provider constructs
file filters according to drivers compiled in ogr. I can reuse this method and 
construct a list with type of driver, driver identifier , and driver name. This way 
when new drivers are added to ogr only the list in ogrprovider have to be updated and
no changes will be needed in the dialogs.
 
Is there any other way to access provider in execution time other than providerregistry methods?
this question is because I want to delegate the connection string creation to ogrprovider
but I don't want to add other method to qgsproviderregistry.
 
Regards
 
Godofredo Contreras
 
 
 
_________________________________________________________________
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090205/88e89c47/attachment.html


More information about the Qgis-developer mailing list