With all the Options For MgCoordinateSystem is there a way to tear all the Ellipsoid info etc out and feed it into OpenLayers where an EPSG can't be found? PS How do you use MapGuide to find out if your coordinate system has an EPSG equivalent?
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Adair Sent: Wednesday, October 07, 2009 11:02 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Fusion and Open layers Coordinate systems I'm currently working on a patch to retrieve the projection info from the map definition for MapGuide. The problem is that MG uses WKT and OpenLayers/Fusion uses EPSG codes and MG doesn't always have an EPSG/WKT mapping available. So I will be implementing this so that if MG returns a valid EPSG code it will use that, otherwise it will take a value from the ApplicationDefinition file, and if there still isn't an EPSG code available then the projection will be set to the OpenLayers default of EPSG:4326. Mike Flipper wrote: > Im trying my hand at some Open Layers programming. I'm trying to set the maps > Coordinate system to match Mapguides, So I decided to peek into Fusion.... > One thing for the life of me I can't find is where fusion sets the OpenLayer > Maps Coordinate system. I know Open layers uses Proj 4, and Mapguide Can use > both cs-map and Proj4...I know how to get the coordinate system Description > out of Mapguide...But how do I push it back into OpenLayers Using my PROJCS > system... > Or worded Much simpler...How/Where does Fusion do this to openLayers...I > want this to work on anymap...so I don't want to hard code a EPSG code into > it, and several users will have Non PROJ4 coordinate systems, like Local > County Coordinate systems that CS-MAP allows them to use... > ANYONE? > -- Michael Adair Senior Software Architect DM Solutions Group Inc. Office: (613) 565-5056 x26 [email protected] http://www.dmsolutions.ca http://research.dmsolutions.ca _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
