[fdo-users] New FDO Provider and using it in Map 3D

Jason Birch Jason.Birch at nanaimo.ca
Tue Sep 11 19:02:14 EDT 2007


Hmm. I didn't get Robert's message, probably because it contained an
attachment.

Would it be reasonable to host this example on the download server?  I
can definitely see other providers wanting to create custom connection
dialogues for use in Map and Studio.  I'm not sure how well this fits
into the open source stream though, since you need some proprietary dlls
to compile against?

Jason 

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Greg Boone
Sent: Tuesday, September 11, 2007 15:52
To: FDO Users Mail List
Subject: RE: [fdo-users] New FDO Provider and using it in Map 3D

Thanks Robert! This will help the community at large.

Greg

-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Robert Fortin
Sent: Tuesday, September 11, 2007 5:51 PM
To: FDO Users Mail List
Subject: RE: [fdo-users] New FDO Provider and using it in Map 3D

Hi Piet!

You could have expected the Map FDO Data Connect Dialog to look for the
properties IsPropertyFileName or IsPropertyFilePath from the
IPropertyDictionary interface to figure out if a connection property is
a file or a path and, base on that, show proper control to select either
a file or a path.  But it is not the case!  The default dialog that you
see doesn't make use of those properties.  

BUT There is a solution to your problem: define a custom connection
control specific to your provider that would show into the Data connect
dialog.  It is documented in the document help/sdk.dev.net.gis.chm under
Map install path.  Look for Data Connect and follow the instructions.

To help you get started, I have attached a sample that work with the SDF
provider renamed to OSGeo.MYSDF.3.2.  Just update the reference to the
FDO, Autodesk and Map dlls and build it.  Then put the dll under
<Map>/Plugins/DataConnect. Edit the providers.xml file and change or
create a copy of the SDF info and change the name to
<Name>OSGeo.MYSDF.3.2</Name>.

After that, when you start Map, a special UI will let you pick the name
of an SDF file by selecting the MYSDF provider. 

Hope it helps.

RF


More information about the fdo-users mailing list