Class PolygonHandler
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.io.shapefile.PolygonHandler
-
- All Implemented Interfaces:
ShapeHandler
public class PolygonHandler extends Object implements ShapeHandler
Wrapper for a Shapefile polygon.
-
-
Constructor Summary
Constructors Constructor Description PolygonHandler()PolygonHandler(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength(Geometry geometry)intgetShapeType()Geometryread(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength)
-
-
-
Constructor Detail
-
PolygonHandler
public PolygonHandler()
-
PolygonHandler
public PolygonHandler(int type) throws InvalidShapefileException- Throws:
InvalidShapefileException
-
-
Method Detail
-
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
public int getLength(Geometry geometry)
- Specified by:
getLengthin interfaceShapeHandler
-
-