/// <summary>
/// 面转线
/// </summary>
/// <param name="pGeom"></param>
/// <returns></returns>
private IPolyline GeometryToPolyline(IGeometry pGeom)
{
IPolygon polygon = pGeom as IPolygon;
IGeometryCollection col = polygon as IGeometryCollection;
IRing ring = col.get_Geometry(0) as IRing;
IPointCollection pc = ring as IPointCollection;
IPointCollection polyline = new PolylineClass();
for (int i = 0; i < pc.PointCount; i++)
{
IPoint p = pc.get_Point(i);
polyline.AddPoint(p);
}
return polyline as IPolyline;
}
C#+AE面转线
最新推荐文章于 2020-11-11 10:27:46 发布