MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgSpatialContextReader* MgLayerBase::GetSpatialContexts ( bool  bActiveOnly) [virtual]

Gets all of the spatial contexts available in the layer or just the active one.

Remarks:
The FdoSpatialContextList XML schema contains a specification of the content of the spatial context information returned in the MgSpatialContextReader object.
Java Syntax
virtual MgSpatialContextReader GetSpatialContexts(boolean bActiveOnly);
Parameters:
bActiveOnly(boolean/bool) This flag is obsolete and no longer used.
Returns:
Returns an MgSpatialContextReader object.
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0

Reimplemented in MgLayer.