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 org.locationtech.spatial4j.io.BinaryCodec
ctx, TYPE_CIRCLE, TYPE_COLL, TYPE_GEOM, TYPE_POINT, TYPE_RECT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
readJtsGeom
(DataInput dataInput) protected Shape
readShapeByTypeIfSupported
(DataInput dataInput, byte type) protected byte
protected void
writeDim
(DataOutput dataOutput, double v) void
writeJtsGeom
(DataOutput dataOutput, Shape s) protected boolean
writeShapeByTypeIfSupported
(DataOutput dataOutput, Shape s, byte type) Methods inherited from class org.locationtech.spatial4j.io.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:
readDim
in classBinaryCodec
- Throws:
IOException
-
writeDim
- Overrides:
writeDim
in classBinaryCodec
- Throws:
IOException
-
typeForShape
- Overrides:
typeForShape
in classBinaryCodec
-
readShapeByTypeIfSupported
- Overrides:
readShapeByTypeIfSupported
in classBinaryCodec
- Throws:
IOException
-
writeShapeByTypeIfSupported
protected boolean writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) throws IOException - Overrides:
writeShapeByTypeIfSupported
in classBinaryCodec
- Throws:
IOException
-
readJtsGeom
- Throws:
IOException
-
writeJtsGeom
- Throws:
IOException
-