zoukankan      html  css  js  c++  java
  • 函数:将一根线段Segment转化为Polyline

    From: <插件式GIS应用框架的设计与实现>

    /// <summary>
            /// 将一根线段segment变成Polyline
            /// </summary>
            /// <param name="iSegment"></param>
            /// <returns></returns>
            private IPolyline getPolylineFromSegment(ISegment iSegment)
            {
                IGeometryCollection pGeoCol = new PolylineClass();
                ISegmentCollection pSegCol = new PathClass();
                ILine pLine = new LineClass();
                pLine.FromPoint = iSegment.FromPoint;
                pLine.ToPoint = iSegment.ToPoint;
                object mis = Type.Missing;
                pSegCol.AddSegment((ISegment)pLine, ref mis, ref mis);
                pGeoCol.AddGeometry((IGeometry)pSegCol,ref mis,ref mis);
    
                return (IPolyline)pGeoCol;
            }
    

      

  • 相关阅读:
    shell循环
    shell选择语句
    shell运算符
    shell变量
    前端基础复习
    flask 模板
    flask 会话技术
    flask 项目结构
    Tornado 框架介绍
    flask-models 操作
  • 原文地址:https://www.cnblogs.com/DayDreamEveryWhere/p/3053168.html
Copyright © 2011-2022 走看看