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, writeShapeByTypeIfSupported
public JtsBinaryCodec(JtsSpatialContext ctx, JtsSpatialContextFactory factory)
protected double readDim(DataInput dataInput) throws IOException
readDim
in class BinaryCodec
IOException
protected void writeDim(DataOutput dataOutput, double v) throws IOException
writeDim
in class BinaryCodec
IOException
protected byte typeForShape(Shape s)
typeForShape
in class BinaryCodec
protected Shape readShapeByTypeIfSupported(DataInput dataInput, byte type) throws IOException
readShapeByTypeIfSupported
in class BinaryCodec
IOException
protected boolean writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) throws IOException
writeShapeByTypeIfSupported
in class BinaryCodec
IOException
public Shape readJtsGeom(DataInput dataInput) throws IOException
IOException
public void writeJtsGeom(DataOutput dataOutput, Shape s) throws IOException
IOException
Copyright © 2020 LocationTech. All rights reserved.