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.
|
Object |
read(ByteBuffer buffer,
ShapeType type,
boolean flatGeometry)
Read a geometry from the ByteBuffer.
|
void |
write(ByteBuffer buffer,
Object geometry)
Write the geometry into the ByteBuffer.
|
ShapeType getShapeType()
Object read(ByteBuffer buffer, ShapeType type, boolean flatGeometry)
buffer
- The ByteBuffer to read from.void write(ByteBuffer buffer, Object geometry)
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.int getLength(Object geometry)
geometry
- The geometry to analyze.Copyright © 1996–2019 Geotools. All rights reserved.