MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgFeatureInformation* MgRenderingService::QueryFeatures ( MgMap map,
MgStringCollection layerNames,
MgGeometry filterGeometry,
INT32  selectionVariant,
CREFSTRING  featureFilter,
INT32  maxFeatures,
INT32  layerAttributeFilter 
) [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:
mapInput map object containing current state of map.
layerNamesInput Active layer names for which to query features
filterGeometryInput geometry object specifying the selection area
selectionVariantInput selection criterion - integer value corresponding to one of the MgFeatureSpatialOperations values
featureFilterInput an XML selection string containing the required feature IDs
maxFeaturesInput the maximum number of features to return
layerAttributeFilterInput bitmask values - 1=Visible, 2=Selectable, 4=HasTooltips
Returns:
An MgSelection instance identifying the features that meet the selection criteria. Returns null if no features are identified.
Since:
1.2