AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgFeatureReader* MgFeatureService::SelectFeatures ( MgResourceIdentifier resource,
CREFSTRING  className,
MgFeatureQueryOptions options,
CREFSTRING  coordinateSystem 
) [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. Use the coordinateSystem argument to set the target coordinate system if you want to transform. 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, string coordinateSystem);
Java Syntax
virtual MgFeatureReader SelectFeatures(MgResourceIdentifier resource, String className, MgFeatureQueryOptions options, String coordinateSystem);
PHP Syntax
virtual MgFeatureReader SelectFeatures(MgResourceIdentifier resource, string className, MgFeatureQueryOptions options, string coordinateSystem);

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.
coordinateSystem (String/string) The name of the coordinate system to transform to.
Returns:
Returns an MgFeatureReader containing the set of selected features.
Exceptions:
MgFeatureServiceException 
MgInvalidArgumentException 
MgFdoException