Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CreateFeatureSource
DescribeSchema
DescribeSchema
DescribeSchemaAsXml
DescribeSchemaAsXml
DescribeWfsFeatureType
EnumerateDataStores
ExecuteSqlNonQuery
ExecuteSqlQuery
GetCapabilities
GetClassDefinition
GetClasses
GetConnectionPropertyValues
GetFeatureProviders
GetLockedFeatures
GetLongTransactions
GetSchemaMapping
GetSchemas
GetSpatialContexts
GetWfsFeature
SchemaToXml
SelectAggregate
SelectFeatures
SelectFeatures
SetLongTransaction
TestConnection
TestConnection
UpdateFeatures
XmlToSchema
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);`
Java Syntax
`virtual MgSpatialContextReader GetSpatialContexts(MgResourceIdentifier resource, boolean bActiveOnly);`
PHP Syntax
`virtual MgSpatialContextReader GetSpatialContexts(MgResourceIdentifier resource, bool bActiveOnly);`
  Parameters:
  | resource | (MgResourceIdentifier) A resource identifier identifying a feature source in the repository.
  | bActiveOnly | (boolean/bool) This flag is obsolete and no longer used.
  Returns: Returns an MgSpatialContextReader object. Exceptions:
  | MgFeatureServiceException |
  | MgInvalidArgumentException |
  | MgInvalidOperationException |
  | MgFdoException |

Comments or suggestions? Send us feedback.