实现思路:

1、解析字符串,把字符串分解成多个RING

2、把RING依次添加到 pGeometryCollection 中

3、把pGeometryCollection解析成几何图形

生成的图形如下:

Arcengine 根据坐标串生成几何图形

相关代码如下:

        private IGeometryCollection AddRing(IGeometryCollection pGeometryCollection, IPointCollection Points)
        {
            Ring ring = new RingClass();
            object missing = Type.Missing;

            ring.AddPointCollection(Points);
            pGeometryCollection.AddGeometry(ring as IGeometry, ref missing, ref missing);
            return pGeometryCollection;
        }

 

         private IGeometry getGeometry(IGeometryCollection pGeometryCollection)
        {
            IPolygon polyGonGeo = pGeometryCollection as IPolygon;
            polyGonGeo.Close();
            polyGonGeo.SimplifyPreserveFromTo();
            return polyGonGeo as IGeometry;
        }

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
相关资源
相似解决方案