Class MultiPointHandler
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.io.shapefile.MultiPointHandler
-
- All Implemented Interfaces:
ShapeHandler
public class MultiPointHandler extends java.lang.Object implements ShapeHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intmyShapeType
-
Constructor Summary
Constructors Constructor Description MultiPointHandler()Creates new MultiPointHandlerMultiPointHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength(Geometry geometry)Calcuates the record length of this object.intgetShapeType()Returns the shapefile shape type value for a pointGeometryread(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength)(package private) double[]zMinMax(Geometry g)
-
-
-
Constructor Detail
-
MultiPointHandler
public MultiPointHandler()
Creates new MultiPointHandler
-
MultiPointHandler
public MultiPointHandler(int type) throws InvalidShapefileException- Throws:
InvalidShapefileException
-
-
Method Detail
-
read
public Geometry read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) throws java.io.IOException, InvalidShapefileException
- Specified by:
readin interfaceShapeHandler- Throws:
java.io.IOExceptionInvalidShapefileException
-
zMinMax
double[] zMinMax(Geometry g)
-
getShapeType
public int getShapeType()
Returns the shapefile shape type value for a point- Specified by:
getShapeTypein interfaceShapeHandler- Returns:
- int Shapefile.POINT
-
getLength
public int getLength(Geometry geometry)
Calcuates the record length of this object.- Specified by:
getLengthin interfaceShapeHandler- Returns:
- int The length of the record that this shapepoint will take up in a shapefile
-
-