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

  • 相关阅读:
    函数length属性
    vue面试题
    ES6引进新的原始数据类型symbol使用及特性
    jq动画
    防抖和节流
    this指向
    前端:性能优化之回流和重绘
    react生命周期
    vue生命周期
    react-redux的实现原理
  • 原文地址:https://www.cnblogs.com/leebokeyuan/p/5534111.html
Copyright © 2011-2022 走看看