Spatial4n.Core.Io.ShapeReadWriter.ReadShape C# (CSharp) Метод

ReadShape() публичный Метод

Reads a shape from a given string (ie, X Y, XMin XMax... WKT)
  • Point: X Y
    1.23 4.56
  • BOX: XMin YMin XMax YMax
    1.23 4.56 7.87 4.56
  • WKT (Well Known Text)
    POLYGON( ... )
    Note:Polygons and WKT might not be supported by this spatial context; you'll have to use {@link com.spatial4j.core.context.jts.JtsSpatialContext}.
@param value A string representation of the shape; not null. @return A Shape; not null. @see #writeShape
public ReadShape ( string value ) : Shape
value string
Результат Shape
        public virtual Shape ReadShape(string value)
        {
            Shape s = ReadStandardShape(value);
            if (s == null)
            {
                throw new InvalidShapeException("Unable to read: " + value);
            }
            return s;
        }