Class LegacyShapeReader

java.lang.Object
org.locationtech.spatial4j.io.LegacyShapeReader
All Implemented Interfaces:
ShapeIO, ShapeReader

@Deprecated public class LegacyShapeReader extends Object implements ShapeReader
Deprecated.
Reads a shape from the old format.
  • Point: X Y
    1.23 4.56
  • Rect: XMin YMin XMax YMax
    1.23 4.56 7.87 4.56
  • {CIRCLE} '(' {POINT} {DISTANCE} ')'
    CIRCLE is "CIRCLE" or "Circle" (no other case), and POINT is "X Y" order pair of doubles, or "Y,X" (lat,lon) pair of doubles, and DISTANCE is "d=RADIUS" or "distance=RADIUS" where RADIUS is a double that is the distance radius in degrees.