Professional Documents
Culture Documents
What you are specifically looking for in the readme file are 3 things:
1. The location that the file should be copied to. In the readme
file it shows the location of the Mapguide folder. In this case
were using Map 3D, so it is incorrect. We want to place the
OGRProvider.dll in the following folder (with the rest of the
providers)
:C:\Program Files\Autodesk Map 3D 2007\FDO\bin
2. The next part we need out of the readme file is the
configuration for the
provider. The following is copied from the readme file:
<FeatureProvider>
<Name>OSGeo.OGR.0.1</Name>
<DisplayName>FDO Provider for OGR</DisplayName>
<Description>Access to OGR data sources</Description>
<IsManaged>False</IsManaged>
<Version>0.1.0.0</Version>
<FeatureDataObjectsVersion>3.1.0.0</FeatureDataObjects
Version>
<LibraryPath>OGRProvider.dll</LibraryPath>
</FeatureProvider>
This defines where the provider is, the version, and a few other
things. You can almost use it as-is but we want to make one
small modification. The Library Path line should read:
<LibraryPath> C:\Program Files\Autodesk Map 3D
2007\FDO\bin
\OGRProvider.dll</LibraryPath>
Make sure you save the file as a plain text file so there are no
formatting codes.
3. There is one other important statement in the readme file:
So far the OGR provider has been tested with:
SHP files
MapInfo files (.TAB)
Oracle Spatial
ESRI personal geodatabase (.mdb)
It does not currently support all of the OGR formats
You must edit the Start in: box so it starts in the Autodesk Map
3D 2007 folder. The entry should read something like:
"C:\Program Files\Autodesk Map 3D 2007\"
Once you have edited the shortcut, restart Map using the new
shortcut and the OGR provider should work as expected. Also, on
some versions of XP new .dll files copied to a system may be
blocked if the system does not recognize them. Find the file in
Windows Explorer, select it, right click and select the Properties,
then use the Unblock button if it appears.
If all went well, you should see something similar to the image
below. There should be an OGR provider in the list and when you
click on it, you should get a few text boxes to enter the filename
and a few other properties. In this example, I am connecting to
the
Florida Department of Transportation road system. It is a 40 MB
file and the roads load in a few seconds.
Arnold Schwabe