MapGuide OS with Google Earth

Jason Birch Jason.Birch at nanaimo.ca
Tue Mar 14 02:19:16 EST 2006


I've uploaded a pretty basic example of using MapGuide OS to serve KML to Google Earth, based on an example that Bob Bray provided with the first preview:
http://www.jasonbirch.com/files/google_earth.zip
 
This is totally unsupported, but in my experience it works with the Sheboygan data set.  On a standard Windows/Apache/Php install you should just have to follow the instructions in the readme.txt file.
 
I had a better example that worked to return data for the current bounding box (you can see it in action at http://earth.nanaimo.ca/ ) but I was unable to get this working with the sample data, so either something has changed with 1.0 or the sample data is different somehow than what I'm serving.  I didn't get any error messages, but seeing all of the exception codes in the API, I guess I should be trapping for these somehow.  Not enough time to research now though.
 
My to-do list:
- clean up the code, make it more modular, and possibly use TJ's KMLDocument class for generating the KML:
http://kml.tjworld.net/downloads.php
- figure out how to read the default scale ranges and symbology from MapGuide, and return a semblance of those instead of having to custom code each layer.  
- dynamically rewrite the bounding box, so that it shifts to the foreground when the view is tilted, allowing delivery of data without killing the server with a huge extent
- deliver GroundOverlay images as an option for small-scale mapping where serving vectors is inappropriate
 
Of course Autodesk could just step in any time now and provide a template for default delivery of KML :)
 
Jason
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5014 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060313/d5d6759e/attachment.bin


More information about the Mapguide_users mailing list