Class JtsBinaryCodec
java.lang.Object
org.locationtech.spatial4j.io.BinaryCodec
org.locationtech.spatial4j.io.jts.JtsBinaryCodec
Writes shapes in WKB, if it isn't otherwise supported by the superclass.
-
Field Summary
FieldsFields inherited from class BinaryCodec
ctx, TYPE_CIRCLE, TYPE_COLL, TYPE_GEOM, TYPE_POINT, TYPE_RECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublereadJtsGeom(DataInput dataInput) protected ShapereadShapeByTypeIfSupported(DataInput dataInput, byte type) protected byteprotected voidwriteDim(DataOutput dataOutput, double v) voidwriteJtsGeom(DataOutput dataOutput, Shape s) protected booleanwriteShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) Methods inherited from class BinaryCodec
readCircle, readCollection, readPoint, readRect, readShape, writeCircle, writeCollection, writePoint, writeRect, writeShape, writeShapeByTypeIfSupported
-
Field Details
-
useFloat
protected final boolean useFloat
-
-
Constructor Details
-
JtsBinaryCodec
-
-
Method Details
-
readDim
- Overrides:
readDimin classBinaryCodec- Throws:
IOException
-
writeDim
- Overrides:
writeDimin classBinaryCodec- Throws:
IOException
-
typeForShape
- Overrides:
typeForShapein classBinaryCodec
-
readShapeByTypeIfSupported
- Overrides:
readShapeByTypeIfSupportedin classBinaryCodec- Throws:
IOException
-
writeShapeByTypeIfSupported
protected boolean writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) throws IOException - Overrides:
writeShapeByTypeIfSupportedin classBinaryCodec- Throws:
IOException
-
readJtsGeom
- Throws:
IOException
-
writeJtsGeom
- Throws:
IOException
-