zoukankan      html  css  js  c++  java
  • Arcengine 根据坐标串生成几何图形

    实现思路:

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

    2、把RING依次添加到 pGeometryCollection 中

    3、把pGeometryCollection解析成几何图形

    生成的图形如下:

    相关代码如下:

            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;
            }

  • 相关阅读:
    网管的自我修养-网络系统
    网管的自我修养-电脑维护
    iOS继承与类别
    iOS支付宝集成
    HTTP HTTPS TCP/IP UDP
    AFNetworking新版本3.0的迁移
    GCD使用 并行串行队列同步异步执行组合情况
    使用vim遇到的问题
    mac取色
    网络解析
  • 原文地址:https://www.cnblogs.com/leebokeyuan/p/5534111.html
Copyright © 2011-2022 走看看