[mapguide-users] Get Spatial Context of a Layer
Jackie Ng
jumpinjackie at gmail.com
Wed May 22 05:00:48 PDT 2013
A layer tells you the following:
* The Feature Source its using
* The Feature Class of the Feature Source
* The Geometry property used for rendering/stylization
Walk back up to the Feature Source, look for the MgClassDefinition that's
referenced. Access its geometry property from that class definition. Inspect
the SpatialContextAssociation property of the Geometry.
This is the name of the spatial context used, from which you can then do a
GetSpatialContexts() on the Feature Source and spin the spatial context
reader until you find one whose name matches the SpatialContextAssociation
of the Geometry and extract all other spatial context properties (like the
Coordinate System WKT) from that.
- Jackie
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-Spatial-Context-of-a-Layer-tp5054873p5054901.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list