Class PolygonHandler
- java.lang.Object
-
- com.vividsolutions.jtstest.testbuilder.io.shapefile.PolygonHandler
-
- All Implemented Interfaces:
ShapeHandler
public class PolygonHandler extends java.lang.Object implements ShapeHandler
Wrapper for a Shapefile polygon.
-
-
Field Summary
Fields Modifier and Type Field Description protected static CGAlgorithmscga
-
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)
-
-
-
Field Detail
-
cga
protected static CGAlgorithms cga
-
-
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 java.io.IOException, InvalidShapefileException
- Specified by:
readin interfaceShapeHandler- Throws:
java.io.IOExceptionInvalidShapefileException
-
getShapeType
public int getShapeType()
- Specified by:
getShapeTypein interfaceShapeHandler
-
getLength
public int getLength(Geometry geometry)
- Specified by:
getLengthin interfaceShapeHandler
-
-