/// <summary> /// 获取多边形的折点集合 /// </summary> /// <param name="shape"></param> /// <returns></returns> public static List <IPoint> getPolygonPoints(DbGeometry shape) { Polygon p = (Polygon)ArcgisService.dbGeometryToGeometry(shape); int pCount = p.PointCount; List <IPoint> pList = new List <IPoint>(); for (int i = 0; i < pCount - 1; i++) { IPoint point = p.Point[i]; pList.Add(point); } return(pList); }
public List <string> findZddmIntersectZrz(ZRZ zrz) { ITable table = ArcgisService.queryTable("ZDJBXX", "ZT in (0,1)"); IGeometry geom = ArcgisService.dbGeometryToGeometry(zrz.SHAPE); List <IFeature> list = ArcgisService.spatialQuery(table as IFeatureClass, geom, esriSpatialRelEnum.esriSpatialRelIntersects); List <string> result = new List <string>(); foreach (IFeature feature in list) { int idx_zddm = feature.Fields.FindField("ZDDM"); string dm = feature.Value[idx_zddm].ToString(); result.Add(dm); } return(result); }