Class SimpleOverlayArea
java.lang.Object
org.locationtech.jts.operation.overlayarea.SimpleOverlayArea
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getArea()
static double
intersectionArea
(Polygon poly0, Polygon poly1) Computes the area of intersection of two polygons with no holes.
-
Constructor Details
-
SimpleOverlayArea
-
-
Method Details
-
intersectionArea
Computes the area of intersection of two polygons with no holes.- Parameters:
poly0
- a polygonpoly1
- a polygon- Returns:
- the area of the intersection of the polygons
-
getArea
public double getArea()
-