IQueryFilter接口主要用于属性查询,WhereClause限定查询条件,后者通过设定空间过滤器的范围(Geometry)和空间关系类型(SpatialRel)限定。
空间关系类型描述:A待查询图形B过滤条件图形SpatialRel属性:例如:esriSpatialRelEnum.esriSpatialRelContains;
esriSpatialRelContains | A包含B |
esriSpatialRelCrosses | 相交(线、面相交,线线相交) |
esriSpatialRelEnvelopeIntersects | A Envelop与B Enverlop 相交 |
esriSpatialRelIndexIntersects | A与B索引相交 |
esriSpatialRelIntersects | 图形相交 |
esriSpatialRelOverlaps | 相叠加 |
esriSpatialRelRelation | 空间关联 |
esriSpatialRelTouches | 边界相接 |
esriSpatialRelUndefined | 未定义 |
esriSpatialRelWithin | A在B内 |
http://resources.esri.com/help/9.3/arcgisengine/arcobjects/esriGeoDatabase/ISpatialFilter_SpatialRelDescription.htm点击打开链接