public class MultiLineHandler extends Object implements ShapeHandler
| Constructor and Description |
|---|
MultiLineHandler()
Create a MultiLineHandler for ShapeType.ARC
|
MultiLineHandler(ShapeType type)
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)
|
org.locationtech.jts.geom.Geometry |
read(ReadBufferManager buffer,
ShapeType type)
Read a geometry from the ByteBuffer.
|
void |
write(WriteBufferManager buffer,
Object geometry)
Write the geometry into the ByteBuffer.
|
public MultiLineHandler()
public MultiLineHandler(ShapeType type) 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 org.locationtech.jts.geom.Geometry read(ReadBufferManager buffer, ShapeType type) throws IOException
ShapeHandlerread in interface ShapeHandlerbuffer - The ByteBuffer to read from.IOExceptionpublic void write(WriteBufferManager buffer, Object geometry) throws IOException
ShapeHandlerwrite in interface ShapeHandlerbuffer - The ByteBuffer to write to.geometry - The geometry to write.IOExceptionCopyright © 2019 CNRS. All rights reserved.