[mapguide-users] Re: Fetching features within rectangle; layer SRS differs from map SRS

Jackie Ng jumpinjackie at gmail.com
Thu Dec 8 08:41:26 EST 2011


To get the layer's coordinate system, get the class definition of the layer
and then get the spatial context association of the geometry property in
this class definition.

Then query the spatial contexts of the feature source your layer uses, and
find the spatial context whose name matches the association.

This spatial context's coordinate system WKT is the coordinate system the
layer is using. With this WKT and the map's WKT, you can create the
equivalent MgCoordinateSystem objects and the MgTransform to transform
coordinates

- Jackie

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fetching-features-within-rectangle-layer-SRS-differs-from-map-SRS-tp7074044p7074276.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list