Class LegacyShapeWriter

  • All Implemented Interfaces:
    ShapeIO, ShapeWriter

    @Deprecated
    public class LegacyShapeWriter
    extends java.lang.Object
    implements ShapeWriter
    Deprecated.
    Writes a shape in 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.
    • Method Detail

      • writeShape

        public static java.lang.String writeShape​(Shape shape,
                                                  java.text.NumberFormat nf)
        Deprecated.
        Overloaded to provide a number format.
      • makeNumberFormat

        public static java.text.NumberFormat makeNumberFormat​(int fractionDigits)
        Deprecated.
        A convenience method to create a suitable NumberFormat for writing numbers.
      • getFormatName

        public java.lang.String getFormatName()
        Deprecated.
        Specified by:
        getFormatName in interface ShapeIO
        Returns:
        the format name
      • write

        public void write​(java.io.Writer output,
                          Shape shape)
                   throws java.io.IOException
        Deprecated.
        Description copied from interface: ShapeWriter
        Write a shape to the output writer
        Specified by:
        write in interface ShapeWriter
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString​(Shape shape)
        Deprecated.
        Description copied from interface: ShapeWriter
        Write a shape to String
        Specified by:
        toString in interface ShapeWriter