Package org.geotools.data.shapefile.shp
Class MultiPointHandler
Object
MultiPointHandler
- All Implemented Interfaces:
ShapeHandler
- Author:
- aaime, Ian Schneider
-
Constructor Summary
ConstructorsConstructorDescriptionMultiPointHandler(ShapeType type, GeometryFactory gf) Creates new MultiPointHandler -
Method Summary
Modifier and TypeMethodDescriptionintCalcuates the record length of this object.Returns the shapefile shape type value for a pointread(ByteBuffer buffer, ShapeType type, boolean flatGeometry) Read a geometry from the ByteBuffer.voidwrite(ByteBuffer buffer, Object geometry) Write the geometry into the ByteBuffer.
-
Constructor Details
-
MultiPointHandler
Creates new MultiPointHandler -
MultiPointHandler
- Throws:
ShapefileException
-
-
Method Details
-
getShapeType
Returns the shapefile shape type value for a point- Specified by:
getShapeTypein interfaceShapeHandler- Returns:
- int Shapefile.MULTIPOINT
-
getLength
Calcuates the record length of this object.- Specified by:
getLengthin interfaceShapeHandler- Parameters:
geometry- The geometry to analyze.- Returns:
- int The length of the record that this shapepoint will take up in a shapefile
-
read
Description copied from interface:ShapeHandlerRead a geometry from the ByteBuffer. The buffer's position, byteOrder, and limit are set to that which is needed. The record has been read as well as the shape type integer. The handler need not worry about reading unused information as the ShapefileReader will correctly adjust the buffer position after this call.- Specified by:
readin interfaceShapeHandler- Parameters:
buffer- The ByteBuffer to read from.- Returns:
- A geometry object.
-
write
Description copied from interface:ShapeHandlerWrite the geometry into the ByteBuffer. The position, byteOrder, and limit are all set. The handler is not responsible for writing the record or shape type integer.- Specified by:
writein interfaceShapeHandler- Parameters:
buffer- The ByteBuffer to write to.geometry- The geometry to write.
-