[Qgis-developer] Open vector dialog

godofredo contreras frdcn at hotmail.com
Fri Feb 13 12:31:08 EST 2009


> From: tim at linfiniti.com
> To: frdcn at hotmail.com
> Subject: Re: [Qgis-developer] Open vector dialog
> Date: Fri, 13 Feb 2009 11:04:33 +0200
> CC: qgis-developer at lists.osgeo.org; warmerdam at pobox.com
> >
> > 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.
> >
> 
> Can you explain better what call you need to add to the provider?
> 


The ogr provider has two methods named fileVectorFilters()  one inside the class

and one as QGISEXTERN.

 

I added some more functions:

 

QString databaseDrivers();

QString directoryDrivers();

QString protocolDrivers();

 

 

Reviewing the code I found that fileVectorFilters is called through QgsProviderRegistry my question

is if it ok to add all these functions to ogrprovider and their equivalents in QgsProviderRegistry.

 

Also I would like to add a method to ogrprovider to create an ogr uri given its connection parameters

and type, this method needs to be called before an instance of qgsvectorlayer is created

but I didn't found a way to call this method without adding compile time dependencies.

 

I implemented the method directly in qgsopenvectordialog but with new drivers will

be needed to update both ogrprovider and qgsopenvectorlayerdialog.

 

Regards

Godofredo Contreras

_________________________________________________________________
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090213/86ef24af/attachment.html


More information about the Qgis-developer mailing list