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

Robert Fortin robert.fortin at autodesk.com
Tue Sep 11 19:36:10 EDT 2007


Jason,

I got a noitification from the server to make sure the email had not been posted by an automated process. This might explain why you didn't get it.

You are right. This is specific to map and I'm not sure if it fit on the os site.  But on the other side, it is valuable to anybody building provider and wanting to create custom dialog in map.  

It could be posted on autodesk site too or provided as a sample with Map.

I'm open to suggestion.
RF
--------------------------
Sent from my BlackBerry - Please excuse typo and syntax.


----- Original Message -----
From: fdo-users-bounces at lists.osgeo.org <fdo-users-bounces at lists.osgeo.org>
To: FDO Users Mail List <fdo-users at lists.osgeo.org>
Sent: Tue Sep 11 19:02:14 2007
Subject: RE: [fdo-users] New FDO Provider and using it in Map 3D

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
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-users/attachments/20070911/bf614643/attachment.html


More information about the fdo-users mailing list