Class IntersectionUtilities


  • public final class IntersectionUtilities
    extends java.lang.Object
    A set of utilities that are common among intersection checks.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double findIntersectionPercentage​(org.openstreetmap.atlas.geography.Polygon polygon, org.openstreetmap.atlas.geography.Polygon otherPolygon)
      Find the percentage of overlap for given Polygons.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findIntersectionPercentage

        public static double findIntersectionPercentage​(org.openstreetmap.atlas.geography.Polygon polygon,
                                                        org.openstreetmap.atlas.geography.Polygon otherPolygon)
        Find the percentage of overlap for given Polygons.
        Parameters:
        polygon - Polygon to check for intersection
        otherPolygon - Another Polygon to check against for intersection
        Returns:
        percentage of overlap as a double; 0 if unable to clip