[mapguide-users] Fusion and Open layers Coordinate systems

Mike Adair madair at dmsolutions.ca
Wed Oct 7 12:01:50 EDT 2009


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
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the mapguide-users mailing list