AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgFeatureReader* MgFeatureService::SelectFeatures ( MgResourceIdentifier resource,
CREFSTRING  className,
MgFeatureQueryOptions options 
) [pure virtual]

Selects features from a feature source according to the criteria set in the MgFeatureQueryOptions argument The criteria are applied to all of the features in the feature source. If you want to apply the criteria to a subset of the features, use MgFeatureService::SelectAggregate. See Filters and expressions .

Remarks:
Be sure to Close() the MgFeatureReader object returned by this method.
.NET Syntax
virtual MgFeatureReader SelectFeatures(MgResourceIdentifier resource, string className, MgFeatureQueryOptions options);
Java Syntax
virtual MgFeatureReader SelectFeatures(MgResourceIdentifier resource, String className, MgFeatureQueryOptions options);
PHP Syntax
virtual MgFeatureReader SelectFeatures(MgResourceIdentifier resource, string className, MgFeatureQueryOptions options);

Parameters:
resource (MgResourceIdentifier) A resource identifier for the feature source.
className (String/string) The name of the feature class from which the properties of interest are selected.
options (MgFeatureQueryOptions) MgFeatureQueryOptions instance containing all required filters for this select operation.
Returns:
Returns an MgFeatureReader containing the set of selected features.
Exceptions:
MgFeatureServiceException 
MgInvalidArgumentException 
MgFdoException