Class HullFunctions
java.lang.Object
org.locationtech.jtstest.function.HullFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry
alphaShape
(Geometry geom, double alpha) static Geometry
alphaShapeWithHoles
(Geometry geom, double alpha) 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
-
Constructor Details
-
HullFunctions
public HullFunctions()
-
-
Method Details
-
convexHull
-
concaveHullPoints
-
concaveHullPointsWithHoles
-
concaveHullPointsByLenRatio
-
concaveHullPointsWithHolesByLenRatio
-
alphaShape
-
alphaShapeWithHoles
-
concaveHullLenGuess
-
concaveness
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 invalid input: '&' Oh, 2012.
- Parameters:
geom
- a polygonal geometry- Returns:
- the concaveness measure of the geometry
-
concaveHullPolygons
-
concaveHullPolygonsWithHoles
-
concaveHullPolygonsTight
-
concaveHullPolygonsByLenRatio
-
concaveHullPolygonsTightByLenRatio
-
concaveFill
-
concaveFillByLenRatio
-