Web API Reference MapGuide Open Source
virtual MgFeatureInformation* MgRenderingService::QueryFeatures ( MgMap map,
MgStringCollection layerNames,
MgGeometry filterGeometry,
INT32  selectionVariant,
INT32  maxFeatures 
) [pure virtual]

The QueryFeatures operation identifies those features that meet the specified spatial selection criteria. This operation is used to implement server-side selection. In addition to a selection set, this operation returns attribute information in case only one feature is selected.

Parameters:
map Input map object containing current state of map.
layerNames Input Active layer names for which to query features
filterGeometry Input geometry object specifying the selection area
selectionVariant Input selection criterion - integer value corresponding to one of the MgFeatureSpatialOperations values
maxFeatures Input the maximum number of features to return
Returns:
An MgSelection instance identifying the features that meet the selection criteria. Returns null if no features are identified.


Comments or suggestions? Send us feedback.