public class ConcaveHull extends Object
Geometry
which is
a concave Geometry
that contains all the points
in the input Geometry
.
The concave hull is not be defined as unique; here, it is
defined according to a threshold which is the maximum length
of border edges of the concave hull.
Uses the Duckham and al. (2008) algorithm defined in the paper untitled "Efficient generation of simple polygons for characterizing the shape of a set of points in the plane".
Modifier and Type | Field and Description |
---|---|
HashMap<com.vividsolutions.jts.geom.Coordinate,Integer> |
coordinates |
HashMap<Integer,Edge> |
edges |
TreeMap<Integer,Edge> |
lengths |
HashMap<com.vividsolutions.jts.geom.LineSegment,Integer> |
segments |
HashMap<Integer,Edge> |
shortLengths |
HashMap<Integer,Triangle> |
triangles |
HashMap<Integer,Vertex> |
vertices |
Constructor and Description |
---|
ConcaveHull(com.vividsolutions.jts.geom.GeometryCollection geometries,
double threshold)
Create a new concave hull construction for the input
GeometryCollection . |
ConcaveHull(com.vividsolutions.jts.geom.Geometry geometry,
double threshold)
Create a new concave hull construction for the input
Geometry . |
Modifier and Type | Method and Description |
---|---|
com.vividsolutions.jts.geom.Geometry |
getConcaveHull()
Returns a
Geometry that represents the concave hull of the input
geometry according to the threshold. |
public ConcaveHull(com.vividsolutions.jts.geom.Geometry geometry, double threshold)
Geometry
.geometry
- threshold
- public ConcaveHull(com.vividsolutions.jts.geom.GeometryCollection geometries, double threshold)
GeometryCollection
.geometries
- threshold
- public com.vividsolutions.jts.geom.Geometry getConcaveHull()
Geometry
that represents the concave hull of the input
geometry according to the threshold.
The returned geometry contains the minimal number of points needed to
represent the concave hull.Polygon
;
2 points, a LineString
;
1 point, a Point
;
0 points, an empty GeometryCollection
.Copyright © 2018. All rights reserved.