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 ArrayList
assignHolesToShells
(ArrayList shells, ArrayList holes) private static int
Finds a object in a list.int
int
(package private) boolean
pointInList
(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:
read
in interfaceShapeHandler
- Throws:
IOException
InvalidShapefileException
-
assignHolesToShells
-
findIndex
Finds a object in a list. Should be much faster than indexof- Parameters:
list
-o
-- Returns:
-
getShapeType
public int getShapeType()- Specified by:
getShapeType
in interfaceShapeHandler
-
getLength
- Specified by:
getLength
in interfaceShapeHandler
-
zMinMax
-