Class HullFunctions
java.lang.Object
org.locationtech.jtstest.function.HullFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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
-