Class PolygonHandler
java.lang.Object
org.locationtech.jtstest.testbuilder.io.shapefile.PolygonHandler
- All Implemented Interfaces:
ShapeHandler
Wrapper for a Shapefile polygon.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ArrayListassignHolesToShells(ArrayList shells, ArrayList holes) private static intFinds a object in a list.intint(package private) booleanpointInList(Coordinate testPoint, Coordinate[] pointList) read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) (package private) double[]
-
Field Details
-
myShapeType
int myShapeType
-
-
Constructor Details
-
PolygonHandler
public PolygonHandler() -
PolygonHandler
- Throws:
InvalidShapefileException
-
-
Method Details
-
pointInList
-
read
public Geometry read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) throws IOException, InvalidShapefileException - Specified by:
readin interfaceShapeHandler- Throws:
IOExceptionInvalidShapefileException
-
assignHolesToShells
-
findIndex
Finds a object in a list. Should be much faster than indexof- Parameters:
list-o-- Returns:
-
getShapeType
public int getShapeType()- Specified by:
getShapeTypein interfaceShapeHandler
-
getLength
- Specified by:
getLengthin interfaceShapeHandler
-
zMinMax
-