LineString ParseLineString(string wkt)
        {
            string[] points = wkt.Split(new char[]{','});

            LineString lineString = new LineString();
            foreach (var item in points)
            {
                var point = ParsePoint(item);
                lineString.AddPoint(point);
            }

            return lineString;
        }
Exemple #2
0
 public Polygon(LineString lineString)
 {
     Populate(lineString.Points);
 }