AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgSpatialContextReader* MgFeatureService::GetSpatialContexts ( MgResourceIdentifier resource,
bool  bActiveOnly 
) [pure virtual]

Gets all of the spatial contexts available in the feature source 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.
.NET Syntax
virtual MgSpatialContextReader GetSpatialContexts(MgResourceIdentifier resource, bool bActiveOnly = false);
Java Syntax
virtual MgSpatialContextReader GetSpatialContexts(MgResourceIdentifier resource, boolean bActiveOnly = false);
PHP Syntax
virtual MgSpatialContextReader GetSpatialContexts(MgResourceIdentifier resource, bool bActiveOnly = false);

Parameters:
resource (MgResourceIdentifier) A resource identifier identifying a feature source in the repository.
bActiveOnly (boolean/bool) If true, the return value contains only the active spatial context. If false, the return value contains all of the available spatial contexts.
Returns:
Returns an MgSpatialContextReader object.
Exceptions:
MgFeatureServiceException 
MgInvalidArgumentException 
MgInvalidOperationException 
MgFdoException