Class PolygonHandler
java.lang.Object
org.locationtech.jtstest.testbuilder.io.shapefile.PolygonHandler
- All Implemented Interfaces:
ShapeHandler
Wrapper for a Shapefile polygon.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintread(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength)
-
Constructor Details
-
PolygonHandler
public PolygonHandler() -
PolygonHandler
- Throws:
InvalidShapefileException
-
-
Method Details
-
read
public Geometry read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) throws IOException, InvalidShapefileException - Specified by:
readin interfaceShapeHandler- Throws:
IOExceptionInvalidShapefileException
-
getShapeType
public int getShapeType()- Specified by:
getShapeTypein interfaceShapeHandler
-
getLength
- Specified by:
getLengthin interfaceShapeHandler
-