AE shp属性查询、空间查询 IQueryFilter和ISpatialFilter
IQueryFilter
public void IQueryFilter_SpatialResolution(IFeatureClass featureClass) { IQueryFilter2 queryFilter2 = new QueryFilterClass(); //there is no with statement in C# queryFilter2.WhereClause = "STATE_NAME = 'California'"; queryFilter2.SpatialResolution = 500; //Using a query filter to search a feature class: IFeatureCursor featureCursor = featureClass.Search(queryFilter2, false); }