Esempio n. 1
0
        public static ShapeData Parse(ReadOnlySpan <byte> str, CoordinateOrder order)
        {
            if (str.Length == 0)
            {
                throw new FormatException("24112: The well-known text (WKT) input is empty. To input an empty instance, specify an empty instance of one of the following types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, CircularString, CompoundCurve, CurvePolygon or GeometryCollection.");
            }
            var reader = new WktReader(str, order);

            return(reader.ReadShape());
        }