Class PointHandler
java.lang.Object
org.locationtech.jtstest.testbuilder.io.shapefile.PointHandler
- All Implemented Interfaces:
ShapeHandler
Wrapper for a Shapefile point.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Calcuates the record length of this object.int
Returns the shapefile shape type value for a pointread
(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength)
-
Field Details
-
Ncoords
int Ncoords -
myShapeType
int myShapeType
-
-
Constructor Details
-
PointHandler
- Throws:
InvalidShapefileException
-
PointHandler
public PointHandler()
-
-
Method Details
-
read
public Geometry read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) throws IOException, InvalidShapefileException - Specified by:
read
in interfaceShapeHandler
- Throws:
IOException
InvalidShapefileException
-
getShapeType
public int getShapeType()Returns the shapefile shape type value for a point- Specified by:
getShapeType
in interfaceShapeHandler
- Returns:
- int Shapefile.POINT
-
getLength
Calcuates the record length of this object.- Specified by:
getLength
in interfaceShapeHandler
- Returns:
- int The length of the record that this shapepoint will take up in a shapefile
-