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

      

  • 相关阅读:
    KMP总结
    条件概率的计算
    EL和JSTL
    tomcat部署web项目
    web
    面试1
    面试可能会问的题
    简介
    建一个springboot项目
    刷题之牛客网
  • 原文地址:https://www.cnblogs.com/DayDreamEveryWhere/p/3053168.html
Copyright © 2011-2022 走看看