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 int
getLength(Geometry geometry)
int
getShapeType()
Geometry
read(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:
read
in interfaceShapeHandler
- Throws:
IOException
InvalidShapefileException
-
getShapeType
public int getShapeType()
- Specified by:
getShapeType
in interfaceShapeHandler
-
getLength
public int getLength(Geometry geometry)
- Specified by:
getLength
in interfaceShapeHandler
-
-