public class JtsBinaryCodec extends BinaryCodec
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useFloat |
ctx, TYPE_CIRCLE, TYPE_COLL, TYPE_GEOM, TYPE_POINT, TYPE_RECT| Constructor and Description |
|---|
JtsBinaryCodec(JtsSpatialContext ctx,
JtsSpatialContextFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
readDim(DataInput dataInput) |
Shape |
readJtsGeom(DataInput dataInput) |
protected Shape |
readShapeByTypeIfSupported(DataInput dataInput,
byte type) |
protected byte |
typeForShape(Shape s) |
protected void |
writeDim(DataOutput dataOutput,
double v) |
void |
writeJtsGeom(DataOutput dataOutput,
Shape s) |
protected boolean |
writeShapeByTypeIfSupported(DataOutput dataOutput,
Shape s,
byte type) |
readCircle, readCollection, readPoint, readRect, readShape, writeCircle, writeCollection, writePoint, writeRect, writeShape, writeShapeByTypeIfSupportedpublic JtsBinaryCodec(JtsSpatialContext ctx, JtsSpatialContextFactory factory)
protected double readDim(DataInput dataInput) throws IOException
readDim in class BinaryCodecIOExceptionprotected void writeDim(DataOutput dataOutput, double v) throws IOException
writeDim in class BinaryCodecIOExceptionprotected byte typeForShape(Shape s)
typeForShape in class BinaryCodecprotected Shape readShapeByTypeIfSupported(DataInput dataInput, byte type) throws IOException
readShapeByTypeIfSupported in class BinaryCodecIOExceptionprotected boolean writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) throws IOException
writeShapeByTypeIfSupported in class BinaryCodecIOExceptionpublic Shape readJtsGeom(DataInput dataInput) throws IOException
IOExceptionpublic void writeJtsGeom(DataOutput dataOutput, Shape s) throws IOException
IOExceptionCopyright © 2025. All rights reserved.