<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: frdcn@hotmail.com<BR>&gt; Subject: Re: [Qgis-developer] Open vector dialog<BR>&gt; Date: Fri, 13 Feb 2009 11:04:33 +0200<BR>&gt; CC: qgis-developer@lists.osgeo.org; warmerdam@pobox.com<BR>&gt; &gt;<BR>&gt; &gt; Is there any other way to access provider in execution time other than<BR>&gt; &gt; providerregistry methods? this question is because I want to delegate the<BR>&gt; &gt; connection string creation to ogrprovider but I don't want to add other<BR>&gt; &gt; method to qgsproviderregistry.<BR>&gt; &gt;<BR>&gt; <BR>&gt; Can you explain better what call you need to add to the provider?<BR>&gt; <BR><BR>
The ogr provider has&nbsp;two methods named&nbsp;<SPAN lang=ES-MODERN>fileVectorFilters()&nbsp; one inside the class</SPAN><BR>
<SPAN lang=ES-MODERN>and one as QGISEXTERN.</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>I&nbsp;added some more functions:</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>QString&nbsp;databaseDrivers();</SPAN><BR><SPAN lang=ES-MODERN>
<SPAN lang=ES-MODERN>QString&nbsp;directoryDrivers();</SPAN><BR>
<SPAN lang=ES-MODERN>QString protocolDrivers();</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>Reviewing the code I found that fileVectorFilters is called through QgsProviderRegistry my question</SPAN><BR>
<SPAN lang=ES-MODERN>is if it ok to add all these functions to ogrprovider and their equivalents in QgsProviderRegistry.</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>Also I would like to add a method to ogrprovider to create an ogr uri given its connection parameters</SPAN><BR>
<SPAN lang=ES-MODERN>and type</SPAN><SPAN lang=ES-MODERN>, this method needs to be called before an instance of&nbsp;qgsvectorlayer is created</SPAN><BR>
<SPAN lang=ES-MODERN>but&nbsp;I didn't found a way to call&nbsp;this method&nbsp;without adding compile time dependencies.</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>I implemented the method&nbsp;directly in qgsopenvectordialog but with&nbsp;new&nbsp;drivers will</SPAN><BR>
<SPAN lang=ES-MODERN>be needed to update both ogrprovider and qgsopenvectorlayerdialog.</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN>&nbsp;<BR>
<SPAN lang=ES-MODERN>Regards</SPAN><BR>
<SPAN lang=ES-MODERN>Godofredo Contreras</SPAN><BR></SPAN><br /><hr />Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. <a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008' target='_new'>Learn Now</a></body>
</html>