You can read the coordinate system in the MapDefinition XML (use
GetResourceContent).
Your database has specifics for dealing with coordinate systems, but it
varies between databases.
You can read the SpatialContext (GetSpatialContext) for the
FeatureSource, which gives
you what MapGuide thinks the CRS is. This one may be overriden by the
user, and the
returned result is the overriden value.
Regards, Kenneth Skovhede, GEOGRAF A/S
mighty_duck skrev:
Hi,
I need to find out, from one side, what CRS is used for showing map in
ajaxviewer, and from the other side, database CRS of layer shown in map. I
need to do this because I need to make appropriate CRS conversion in the
case that CRS used for showing map in ajaxviewer is different from original
CRS(in database) of layer used in that map. Im not sure if this is possible
to check on the client side (I dont see appropriate method for this) and on
the server side Im not sure how to do this (is it possible to find out CRS
of map through session that I retrieve on the client side using
getSessionId() method and how to find out CRS of specific layer in database
using MapGuide API???)
thanks in advance
Regards
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users