[fdo-dev] GetProviderDatastoreType()

Orest Halustchak orest.halustchak at autodesk.com
Fri Oct 27 08:24:17 EDT 2006


The GetProviderDatastoreType() and GetDependentFileNames() functions are
meant to be called after the connection is open when the provider would
know the datastore type and know what the files are. At that time, the
provider would know wheter the connection was to a file, to a web
server, or something else.


-----Original Message-----
From: Frank Warmerdam (External) 
Sent: Thursday, October 26, 2006 10:27 PM
To: dev at fdo.osgeo.org
Subject: Re: [fdo-dev] GetProviderDatastoreType()

Traian Stanev wrote:
> Same question applies to the OGR provider.
> In theory one could wait until the connection is open and figure out 
> what the underlying data source is, but I didn't do that (so far). I 
> just made it return Unknown.
> The downside (and I'm relating something that was explained to me when

> I asked the same question) is that a MapGuide feature source is not 
> portable when you return Unknown -- meaning that if the connection is 
> to a file, the client logic would know to copy the file also when 
> moving a feature source around. With Unknown, it can't know that so 
> copying a feature source would require manual work by the user.


I'm guessing that copying a file based connection would also require
correct implementation of the ConnectionInfo::GetDependentFileNames(),
is that right?

Since I am in no position to do that accurately currently for GDAL, I
guess I might just as well return _Unknown.

Thanks for answer!

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,

To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org For additional
commands, e-mail: dev-help at fdo.osgeo.org

More information about the Fdo-internals mailing list