Пример #1
0
        /// <summary>Создаём Polyline из Geometry.TLineString</summary>
        /// <param name="wl"> Geometry.TLineString </param>
        /// <returns> Polyline </returns>
        public Polyline MakePolyLine(Geometry.TLineString wl)
        {
            var nPoly = new Polyline();

            wl.Coords.ForEach(wp => nPoly.AddVertexAt(0, new Point2d(wp.X, wp.Y), 0, 0, 0));
            return(nPoly);
        }
Пример #2
0
        /// <summary>Создаём MPolygonLoop из Geometry.TLineString</summary>
        /// <param name="wLine"></param>
        /// <returns> MPolygonLoop </returns>
        public MPolygonLoop ConvertLineString(Geometry.TLineString wLine)
        {
            var res = new MPolygonLoop();

            wLine.Coords.ForEach(tp => res.Add(new BulgeVertex(ConvertPoint2d(tp), 0)));
            return(res);
        }