public class PolygonHandler extends Object implements ShapeHandler
| Constructor and Description |
|---|
PolygonHandler(GeometryFactory gf) |
PolygonHandler(ShapeType type,
GeometryFactory gf) |
| 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 flatFeature)
Read a geometry from the ByteBuffer.
|
void |
write(ByteBuffer buffer,
Object geometry)
Write the geometry into the ByteBuffer.
|
protected static final Logger LOGGER
public PolygonHandler(GeometryFactory gf)
public PolygonHandler(ShapeType type, GeometryFactory gf) throws ShapefileException
ShapefileExceptionpublic ShapeType getShapeType()
ShapeHandlergetShapeType in interface ShapeHandlerpublic int getLength(Object geometry)
ShapeHandlergetLength in interface ShapeHandlergeometry - The geometry to analyze.public Object read(ByteBuffer buffer, ShapeType type, boolean flatFeature)
ShapeHandlerread in interface ShapeHandlerbuffer - The ByteBuffer to read from.public void write(ByteBuffer buffer, Object geometry)
ShapeHandlerwrite in interface ShapeHandlerbuffer - The ByteBuffer to write to.geometry - The geometry to write.Copyright © 1996–2019 Geotools. All rights reserved.