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