public interface ShapeHandler
| Modifier and Type | Method and Description |
|---|---|
int |
getLength(Object geometry)
Get the length of the given geometry Object in bytes not 16-bit words.
|
ShapeType |
getShapeType()
Get the ShapeType of this handler.
|
org.locationtech.jts.geom.Geometry |
read(ReadBufferManager buffer,
ShapeType type)
Read a geometry from the ByteBuffer.
|
void |
write(WriteBufferManager shapeBuffer,
Object geometry)
Write the geometry into the ByteBuffer.
|
ShapeType getShapeType()
org.locationtech.jts.geom.Geometry read(ReadBufferManager buffer, ShapeType type) throws IOException
buffer - The ByteBuffer to read from.IOExceptionvoid write(WriteBufferManager shapeBuffer, Object geometry) throws IOException
shapeBuffer - The ByteBuffer to write to.geometry - The geometry to write.IOExceptionint getLength(Object geometry)
geometry - The geometry to analyze.Copyright © 2019 CNRS. All rights reserved.