public class PolygonHandler extends java.lang.Object implements ShapeHandler
Modifier and Type | Field and Description |
---|---|
(package private) int |
myShapeType |
Constructor and Description |
---|
PolygonHandler() |
PolygonHandler(int type) |
Modifier and Type | Method and Description |
---|---|
private java.util.ArrayList |
assignHolesToShells(java.util.ArrayList shells,
java.util.ArrayList holes) |
private static int |
findIndex(java.util.ArrayList list,
java.lang.Object o)
Finds a object in a list.
|
int |
getLength(Geometry geometry) |
int |
getShapeType() |
(package private) boolean |
pointInList(Coordinate testPoint,
Coordinate[] pointList) |
Geometry |
read(EndianDataInputStream file,
GeometryFactory geometryFactory,
int contentLength) |
(package private) double[] |
zMinMax(Geometry g) |
public PolygonHandler()
public PolygonHandler(int type) throws InvalidShapefileException
InvalidShapefileException
boolean pointInList(Coordinate testPoint, Coordinate[] pointList)
public Geometry read(EndianDataInputStream file, GeometryFactory geometryFactory, int contentLength) throws java.io.IOException, InvalidShapefileException
read
in interface ShapeHandler
java.io.IOException
InvalidShapefileException
private java.util.ArrayList assignHolesToShells(java.util.ArrayList shells, java.util.ArrayList holes)
private static int findIndex(java.util.ArrayList list, java.lang.Object o)
list
- o
- public int getShapeType()
getShapeType
in interface ShapeHandler
public int getLength(Geometry geometry)
getLength
in interface ShapeHandler
double[] zMinMax(Geometry g)