Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Just Fooling Around

8 REPLIES 8
Reply
Message 1 of 9
gbneff
555 Views, 8 Replies

Just Fooling Around

Hi,

I currently use Mapguide 6.5 and started fooling around a little with Mapguide Open Source and MapGuide Studio. In Studio, I am able to ad a layer using an SDF file to the map but when I try to create a new data connection, there are no providers listed. I have istalled the ODBC and Raster FDO providers according to the directions. Does anyone have any ideas? Is there a way to test if these providers are functioning?

Thanks,

Greg Neff
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: gbneff

And you added the entries for the providers to providers.xml in the
Server\Bin\FDO folder? If so, try restarting the MapGuide server service to
see if it will then pick up the new entries. To see what feature providers
you have installed, go to http://localhost/mapguide/mapagent/index.html (or
whatever your URL is), click on Feature Service API in the top left panel
and then GetFeatureProviders below. Submit the page and you will then see a
list of your providers.

These are the entries for providers.xml that you need:


OSGeo.ODBC.3.1
OSGeo FDO Provider for ODBC
Read/write access to ODBC-based data store. Supports XYZ
point features.

False
3.1.0.0
3.1.0.0
FdoOdbc.dll



Autodesk.Raster.3.1
Autodesk FDO Provider for Raster
Read access to various raster-based file formats. Supports
georeferenced file-based raster images and 3D grid surfaces.

False
3.1.0.0
3.1.0.0
FDORFP.dll



--
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com


wrote in message news:5377557@discussion.autodesk.com...
Hi,

I currently use Mapguide 6.5 and started fooling around a little with
Mapguide Open Source and MapGuide Studio. In Studio, I am able to ad a
layer using an SDF file to the map but when I try to create a new data
connection, there are no providers listed. I have istalled the ODBC and
Raster FDO providers according to the directions. Does anyone have any
ideas? Is there a way to test if these providers are functioning?

Thanks,

Greg Neff
Message 3 of 9
gbneff
in reply to: gbneff

Thanks for the reply Andy.

I had a problem with my providers.xml file. It's working now. I have the two additional providers listed.

The raster works great but I havn't been able to connect to and Access db. I have tried a connection string and setting up a data soucre on the server. I am able to communicate with the db from the ODBC data source administrator in windows but Mapguide Studio gives an error telling me there is no database open.

I'm probably missing something simple.
Message 4 of 9
Anonymous
in reply to: gbneff

I have found that a connection string in this format works, so maybe it's
just a matter of syntax differences on your end.

Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\your projects\your DB
folder\your DB.mdb;Uid=Admin;Pwd=;

Andy

wrote in message news:5379339@discussion.autodesk.com...
Thanks for the reply Andy.

I had a problem with my providers.xml file. It's working now. I have the
two additional providers listed.

The raster works great but I havn't been able to connect to and Access db.
I have tried a connection string and setting up a data soucre on the server.
I am able to communicate with the db from the ODBC data source administrator
in windows but Mapguide Studio gives an error telling me there is no
database open.

I'm probably missing something simple.
Message 5 of 9
gbneff
in reply to: gbneff

I got the ODBC working. I wasn't able to get it working until I moved the .mdb file to the Mapguide Server.

I have another question if you have time.

I'm using a state plane coordinate system for my map. My sdf files, which were created in a different coordinate system and loaded into Mapguide Studio, all appear correctly in the map. I have an ODBC source for points which are in Lat/Long NAD83 (LL83 in Mapguide Studio)

The ODBC source does not appear in the map unless I change the coordinate system of my map to LL83. Unfortunately, there is considerable distortion when I use LL83 for the map. Do you have any idea why the ODBC coordinates aren't translating? I'm assuming that Mapguide Open Souce will make the tanslation.

This is the same data source I have used for some time with Mapguide 6.5 and it works perfectly.

Thanks,

Greg Neff
Message 6 of 9
gbneff
in reply to: gbneff

Updated to the latest version of Mapguide Open Source and the latest FDO providers and it fixed the problem.
Message 7 of 9
lemorlenny
in reply to: gbneff

Hi,
I've followed this thread because i have the same problem. I've tried to update the provider list but i don't undestand how modify the XML file.
Can U help me?

Thanks
Message 8 of 9
dswilson
in reply to: gbneff

Normally you shouldn't have to modify the providers.xml. The ODBC provider comes with both the Open Source and Enterprise.

What version of MG are you using?

Dave
Message 9 of 9
gbneff
in reply to: gbneff

I have attached a copy of my providers.xml file which works for me. Below is the text from the readme file that comes with the provider download:

Instructions for how to install an FDO provider

Stop the "MapGuide Server" service (mgserver.exe) if it is running:
1. Open the Windows "Control Panel"
2. Select the "Administrative Tools" entry
3. Launch the "Services" panel
4. Right click on the "MapGuide Server" item and select "Stop"

Go to this folder: C:\Program Files\MapGuideOpenSource\Server\Bin\FDO
1. Unzip the XXXXX.zip file directly into this folder.
2. Create a backup copy of your providers.xml file.
3. Copy the entry from the providerXXXXX.xml file into the providers.xml file.

Restart the MapGuide Server service:
1. Open the Windows "Control Panel"
2. Select the "Administrative Tools" entry
3. Launch the "Services" panel
4. Right click on the "MapGuide Server" item and select "Start"

If the "MapGuide Server" service fails to start, check the providers.xml file
for correct XML format. Also make sure that each entry in the file references
an existing provider DLL file.


Note: For the ArcSDE Provider you will need the ArcSDE client dlls
(sde91.dll, sg91.dll, pe91.dll. version number 9.1.0.720).


I just used wordpad to open the .xml files and copy the info from the one to the other.

Hope this helps.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report