查询面上的线,如果线和面只有点相交的不查询出来。
ISpatialFilter filter = new SpatialFilterClass();
//根据界址点号和地籍号从jzd图形中获取几何对象,只有一条记录
filter.SpatialRel = esriSpatialRelEnum.esriSpatialRelRelation;
filter.SpatialRelDescription = "***T*****";
第5位为true,和通常的touch关系一样。线和面只相交一个点的也查询出来。第4位为true,querygeometry为面,requested geometry为线。线的内部就是去掉端点的部分。这就表示面得边线和线的内部(去掉端点)必须相交。
Query Geometry | Requested Geometry | |
---|---|---|
1 | interior | interior |
2 | interior | boundary |
3 | interior | exterior |
4 | boundary | interior |
5 | boundary | boundary |
6 | boundary | exterior |
7 | exterior | interior |
8 | exterior | boundary |
9 | exterior | exterior |
//filter.SpatialRel = esriSpatialRelEnum.esriSpatialRelCrosses;
filter.Geometry = this.GeometryShape;(shape是多边形)