public class MultiLineHandler extends Object implements ShapeHandler
| Constructor and Description |
|---|
MultiLineHandler(GeometryFactory gf)
Create a MultiLineHandler for ShapeType.ARC
|
MultiLineHandler(ShapeType type,
GeometryFactory gf)
Create a MultiLineHandler for one of:
ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ |
| 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 type of shape stored (ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ)
|
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.
|
public MultiLineHandler(GeometryFactory gf)
public MultiLineHandler(ShapeType type, GeometryFactory gf) throws ShapefileException
type - The ShapeType to use.ShapefileException - If the ShapeType is not correct (see constructor).public ShapeType getShapeType()
getShapeType in interface ShapeHandlerpublic int getLength(Object geometry)
ShapeHandlergetLength in interface ShapeHandlergeometry - The geometry to analyze.public Object read(ByteBuffer buffer, ShapeType type, boolean flatGeometry)
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.