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 MgDataReader* MgFeatureService::SelectAggregate | ( | MgResourceIdentifier * | resource,
|  | CREFSTRING | className,
|  | MgFeatureAggregateOptions * | options |
| ) |  |  | `[pure virtual]`
Selects groups of features from a feature source and applies filters to each of the groups according to the criteria set in the MgFeatureAggregateOptions argument. If you want to apply the criteria to all features without grouping them, use the MgFeatureService::SelectFeatures Method . See Filters and expressions . Remarks: Be sure to Close() the MgDataReader object returned by this method. .NET Syntax
`virtual MgDataReader SelectAggregate(MgResourceIdentifier resource, string className, MgFeatureAggregateOptions options);`
Java Syntax
`virtual MgDataReader SelectAggregate(MgResourceIdentifier resource, String className, MgFeatureAggregateOptions options);`
PHP Syntax
`virtual MgDataReader SelectAggregate(MgResourceIdentifier resource, string className, MgFeatureAggregateOptions options);`
  Parameters:
  | resource | (MgResourceIdentifier) A resource identifier for the feature source.
  | className | (String/string) The name of the feature class on which the select operation is performed.
  | options | (MgFeatureAggregateOptions) An MgFeatureAggregateOptions instance containing all the criteria and filters required for this select operation.
  Returns: Returns an MgDataReader containing the group values. Exceptions:
  | MgFeatureServiceException |
  | MgInvalidArgumentException |
  | MgFdoException |

Comments or suggestions? Send us feedback.