| Constructor and Description |
|---|
ConvexHull(Geometry geometry)
Create a new convex hull construction for the input
Geometry. |
ConvexHull(Point[] pts,
GeometryFactory geomFactory)
Create a new convex hull construction for the input
Coordinates array. |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
getConvexHull()
Returns a
Geometry that represents the convex hull of the input
geometry. |
static boolean |
isPointInRing(Point p,
Point... ring)
Tests whether a point lies inside or on a ring.
|
protected Point[] |
toCoordinateArray(Stack<Point> stack)
An alternative to Stack.toArray, which is not present in earlier versions
of Java.
|
public ConvexHull(Geometry geometry)
Geometry.public ConvexHull(Point[] pts, GeometryFactory geomFactory)
Coordinates array.public static boolean isPointInRing(Point p, Point... ring)
This method does not first check the point against the envelope of the ring.
p - point to check for ring inclusionring - an array of coordinates representing the ring (which must have
first point identical to last point)locatePointInRingpublic Geometry getConvexHull()
Geometry that represents the convex hull of the input
geometry.
The returned geometry contains the minimal number of points needed to
represent the convex hull. In particular, no more than two consecutive
points will be collinear.Polygon;
2 points, a LineString;
1 point, a Point;
0 points, an empty GeometryCollection.Copyright © 2015 Revolution Systems Inc.. All rights reserved.