Class HullFunctions

java.lang.Object
org.locationtech.jtstest.function.HullFunctions

public class HullFunctions extends Object
  • Constructor Details

    • HullFunctions

      public HullFunctions()
  • Method Details

    • convexHull

      public static Geometry convexHull(Geometry g)
    • concaveHullPoints

      public static Geometry concaveHullPoints(Geometry geom, double maxLen)
    • 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 invalid input: '&' Oh, 2012.

      Parameters:
      geom - a polygonal geometry
      Returns:
      the concaveness measure of the geometry
    • concaveHullPolygons

      public static Geometry concaveHullPolygons(Geometry geom, double maxEdgeLen)
    • 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)
    • concaveFill

      public static Geometry concaveFill(Geometry geom, double maxEdgeLen)
    • concaveFillByLenRatio

      public static Geometry concaveFillByLenRatio(Geometry geom, double maxEdgeLenRatio)