Class SimpleOverlayArea


  • public class SimpleOverlayArea
    extends Object
    Computes the result area of an overlay usng the Overlay-Area, for simple polygons. Simple polygons have no holes. No indexing is used. This is faster than OverlayArea for polygons with low vertex count.
    Author:
    mdavis
    • Constructor Detail

      • SimpleOverlayArea

        public SimpleOverlayArea​(Polygon geom0,
                                 Polygon geom1)
    • Method Detail

      • intersectionArea

        public static double intersectionArea​(Polygon poly0,
                                              Polygon poly1)
        Computes the area of intersection of two polygons with no holes.
        Parameters:
        poly0 - a polygon
        poly1 - a polygon
        Returns:
        the area of the intersection of the polygons
      • getArea

        public double getArea()