private IGeometry getGeometry(IPointCollection Points)
{
IPointCollection iPointCollection = new PolygonClass();
Ring ring = new RingClass();
object missing = Type.Missing;
ring.AddPointCollection(Points);
IGeometryCollection pointPolygon = new PolygonClass();
pointPolygon.AddGeometry(ring as IGeometry, ref missing, ref missing);
IPolygon polyGonGeo = pointPolygon as IPolygon;
//polyGonGeo.Close();
polyGonGeo.SimplifyPreserveFromTo();
return polyGonGeo as IGeometry;
}
由点IPOintcollection生成面IGeometry
最新推荐文章于 2023-08-11 10:34:04 发布