Class JtsBinaryCodec


  • public class JtsBinaryCodec
    extends BinaryCodec
    Writes shapes in WKB, if it isn't otherwise supported by the superclass.
    • Field Detail

      • useFloat

        protected final boolean useFloat
    • Method Detail

      • readDim

        protected double readDim​(java.io.DataInput dataInput)
                          throws java.io.IOException
        Overrides:
        readDim in class BinaryCodec
        Throws:
        java.io.IOException
      • writeDim

        protected void writeDim​(java.io.DataOutput dataOutput,
                                double v)
                         throws java.io.IOException
        Overrides:
        writeDim in class BinaryCodec
        Throws:
        java.io.IOException
      • readShapeByTypeIfSupported

        protected Shape readShapeByTypeIfSupported​(java.io.DataInput dataInput,
                                                   byte type)
                                            throws java.io.IOException
        Overrides:
        readShapeByTypeIfSupported in class BinaryCodec
        Throws:
        java.io.IOException
      • writeShapeByTypeIfSupported

        protected boolean writeShapeByTypeIfSupported​(java.io.DataOutput dataOutput,
                                                      Shape s,
                                                      byte type)
                                               throws java.io.IOException
        Overrides:
        writeShapeByTypeIfSupported in class BinaryCodec
        Throws:
        java.io.IOException
      • readJtsGeom

        public Shape readJtsGeom​(java.io.DataInput dataInput)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeJtsGeom

        public void writeJtsGeom​(java.io.DataOutput dataOutput,
                                 Shape s)
                          throws java.io.IOException
        Throws:
        java.io.IOException