Class HullFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.HullFunctions
-
public class HullFunctions extends Object
-
-
Constructor Summary
Constructors Constructor Description HullFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometry
concaveFill(Geometry geom, double maxEdgeLen)
static Geometry
concaveFillByLenRatio(Geometry geom, double maxEdgeLenRatio)
static double
concaveHullLenGuess(Geometry geom)
static Geometry
concaveHullPoints(Geometry geom, double maxLen)
static Geometry
concaveHullPointsByLenRatio(Geometry geom, double maxLenRatio)
static Geometry
concaveHullPointsWithHoles(Geometry geom, double maxLen)
static Geometry
concaveHullPointsWithHolesByLenRatio(Geometry geom, double maxLenRatio)
static Geometry
concaveHullPolygons(Geometry geom, double maxEdgeLen)
static Geometry
concaveHullPolygonsByLenRatio(Geometry geom, double maxEdgeLenRatio)
static Geometry
concaveHullPolygonsTight(Geometry geom, double maxEdgeLen)
static Geometry
concaveHullPolygonsTightByLenRatio(Geometry geom, double maxEdgeLenRatio)
static Geometry
concaveHullPolygonsWithHoles(Geometry geom, double maxEdgeLen)
static double
concaveness(Geometry geom)
A concaveness measure defined in terms of the perimeter length relative to the convex hull perimeter.static Geometry
convexHull(Geometry g)
-
-
-
Method Detail
-
concaveHullPointsWithHoles
public static Geometry concaveHullPointsWithHoles(Geometry geom, double maxLen)
-
concaveHullPointsByLenRatio
public static Geometry concaveHullPointsByLenRatio(Geometry geom, double maxLenRatio)
-
concaveHullPointsWithHolesByLenRatio
public static Geometry concaveHullPointsWithHolesByLenRatio(Geometry geom, double maxLenRatio)
-
concaveHullLenGuess
public static double concaveHullLenGuess(Geometry geom)
-
concaveness
public static double concaveness(Geometry geom)
A concaveness measure defined in terms of the perimeter length relative to the convex hull perimeter.C = ( P(geom) - P(CH) ) / P(CH)
Concaveness values are >= 0. A convex polygon has C = 0. A higher concaveness indicates a more concave polygon.Originally defined by Park & Oh, 2012.
- Parameters:
geom
- a polygonal geometry- Returns:
- the concaveness measure of the geometry
-
concaveHullPolygonsWithHoles
public static Geometry concaveHullPolygonsWithHoles(Geometry geom, double maxEdgeLen)
-
concaveHullPolygonsTight
public static Geometry concaveHullPolygonsTight(Geometry geom, double maxEdgeLen)
-
concaveHullPolygonsByLenRatio
public static Geometry concaveHullPolygonsByLenRatio(Geometry geom, double maxEdgeLenRatio)
-
concaveHullPolygonsTightByLenRatio
public static Geometry concaveHullPolygonsTightByLenRatio(Geometry geom, double maxEdgeLenRatio)
-
-