함수: 선 세그먼트 Segment를 Polyline으로 변환

843 단어 함수.
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;

        }


좋은 웹페이지 즐겨찾기