<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>[fdo-dev] GetProviderDatastoreType()</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>Same question applies to the OGR provider.</DIV>
<DIV>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.</DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>Traian</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Frank Warmerdam
(External) <BR><B>Sent:</B> Thu 10/26/2006 9:53 PM <BR><B>To:</B> FDO
Developers <BR><B>Cc:</B> <BR><B>Subject:</B> [fdo-dev]
GetProviderDatastoreType()<BR><BR></FONT></DIV>
<P><FONT size=2>Folks,<BR><BR>I see there is a new manditory method for
connection info classes called<BR>GetProviderDatastoreType() that can return
one of:<BR><BR>FdoProviderDatastoreType_Unknown,
FdoProviderDatastoreType_File,<BR>FdoProviderDatastoreType_DatabaseServer,
FdoProviderDatastoreType_WebServer<BR><BR>It seems someone modified fdogdal to
return FdoProviderDatastoreType_File,<BR>which is usually true. But in
some cases it is a web server, or another<BR>sort of virtual network service
(ie. OGDI gltp). And GDAL does not know<BR>which of these applies even
for an active connection.<BR><BR>Is the return result of this method
important? Is there any reason I<BR>shouldn't just return _Unknown since
I don't really know?<BR><BR>Best
regards,<BR>--<BR>---------------------------------------+--------------------------------------<BR>I
set the clouds in motion - turn up | Frank Warmerdam,
warmerdam@pobox.com<BR>light and sound - activate the windows | <A
href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</A><BR>and
watch the world go round - Rush | President OSGeo, <A
href="http://osgeo.org">http://osgeo.org</A><BR><BR><BR>---------------------------------------------------------------------<BR>To
unsubscribe, e-mail: dev-unsubscribe@fdo.osgeo.org<BR>For additional commands,
e-mail: dev-help@fdo.osgeo.org<BR><BR></FONT></P></BLOCKQUOTE>
</BODY>
</HTML>