zoukankan      html  css  js  c++  java
  • IGeometry 中取指定的点

    private static IGeometryCollection MakeMultiPoint(IGeometry geometry,int pointcount)

             IGeometryCollection g=new MultipointClass();
             if(geometry.GeometryType==esriGeometryType.esriGeometryPolyline)

            IConstructGeometryCollection cc=new GeometryBagClass();
            cc.ConstructDivideEqual(geometry as IPolyline ,pointCount,esriConstructDivideEnum.esriDivideIntoPolylines);
            var enumGeometry=cc as IEnumGeometry;
             var polyline=enumGeometry as IPolyline;
              object o=Type.Missing;
              if(polyline!=null)
              {     
                       g.AddGeometry(poyline.FromPoint,ref o,ref o);
            while(polyline!=null)
            {
                      g.AddGeometry(poyline.ToPoint,ref o,ref o);
                    polyline=enumGeometry.Next() as IPolyline;
            }
              }

         return g;
  • 相关阅读:
    xtrabackup执行备份要拥有的权限
    CentOS 7 下yum安装xtrabackup备份工具
    MySQL read_only选项的作用
    Linux进程管理命令
    MySQL二进制日志中保存的上下文信息
    MySQLdb的安装
    MySQL The password hash doesn't have the expected format.
    web框架本质
    进程和线程
    good blog
  • 原文地址:https://www.cnblogs.com/dayspring/p/3642296.html
Copyright © 2011-2022 走看看