public class MultiPointHandler extends Object implements ShapeHandler
Constructor and Description |
---|
MultiPointHandler(GeometryFactory gf)
Creates new MultiPointHandler
|
MultiPointHandler(ShapeType type,
GeometryFactory gf) |
Modifier and Type | Method and Description |
---|---|
int |
getLength(Object geometry)
Calcuates the record length of this object.
|
ShapeType |
getShapeType()
Returns the shapefile shape type value for a point
|
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 MultiPointHandler(GeometryFactory gf)
public MultiPointHandler(ShapeType type, GeometryFactory gf) throws ShapefileException
ShapefileException
public ShapeType getShapeType()
getShapeType
in interface ShapeHandler
public int getLength(Object geometry)
getLength
in interface ShapeHandler
geometry
- The geometry to analyze.public Object read(ByteBuffer buffer, ShapeType type, boolean flatGeometry)
ShapeHandler
read
in interface ShapeHandler
buffer
- The ByteBuffer to read from.public void write(ByteBuffer buffer, Object geometry)
ShapeHandler
write
in interface ShapeHandler
buffer
- The ByteBuffer to write to.geometry
- The geometry to write.Copyright © 1996–2019 Geotools. All rights reserved.