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 GeometryalphaShape(Geometry geom, double alpha)static GeometryalphaShapeWithHoles(Geometry geom, double alpha)static GeometryconcaveFill(Geometry geom, double maxEdgeLen)static GeometryconcaveFillByLenRatio(Geometry geom, double maxEdgeLenRatio)static doubleconcaveHullLenGuess(Geometry geom)static GeometryconcaveHullPoints(Geometry geom, double maxLen)static GeometryconcaveHullPointsByLenRatio(Geometry geom, double maxLenRatio)static GeometryconcaveHullPointsWithHoles(Geometry geom, double maxLen)static GeometryconcaveHullPointsWithHolesByLenRatio(Geometry geom, double maxLenRatio)static GeometryconcaveHullPolygons(Geometry geom, double maxEdgeLen)static GeometryconcaveHullPolygonsByLenRatio(Geometry geom, double maxEdgeLenRatio)static GeometryconcaveHullPolygonsTight(Geometry geom, double maxEdgeLen)static GeometryconcaveHullPolygonsTightByLenRatio(Geometry geom, double maxEdgeLenRatio)static GeometryconcaveHullPolygonsWithHoles(Geometry geom, double maxEdgeLen)static doubleconcaveness(Geometry geom)A concaveness measure defined in terms of the perimeter length relative to the convex hull perimeter.static GeometryconvexHull(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)
-
-