[mapguide-users] Fusion and Open layers Coordinate systems
Mike Adair
madair at dmsolutions.ca
Wed Oct 7 13:59:22 EDT 2009
That's what happens by default in OpenLayers if nothing is specified for
a projection, ie. it assumes Lat/Lon. The patch I am working on allows
for non-standard projection parameters but in the PROJ.4 initialization
string format, not in the MG WKT format.
Most Fusion widgets don't need projection info in any case. It's only
widgets like the Measure, or CursorPosition widgets where projection
information becomes important.
Mike
Jason Birch wrote:
> I know this is neither here nor there, but I believe there are many
> valid projections that do not have EPSG codes. Defaulting to LL when
> many "non-standard" CS are liner-units-based may not be the best
> approach. Would it not be possible to disable coordinate transforms if
> there is no code available?
>
> Jason
>
> On 2009-10-07, Mike Adair <madair at dmsolutions.ca> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
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