Class OverlayResultValidator

Hierarchy: Object , OverlayResultValidator
public class OverlayResultValidator
Validates that the result of an overlay operation is geometrically correct, within a determined tolerance. Uses fuzzy point location to find points which are definitely in either the interior or exterior of the result geometry, and compares these results with the expected ones.

This algorithm is only useful where the inputs are polygonal. This is a heuristic test, and may return false positive results (I.e. it may fail to detect an invalid result.) It should never return a false negative result, however (I.e. it should never report a valid result as invalid.)

Authors:
Martin Davis
See also:
OverlayOp

Other

  • version: 1.7
public OverlayResultValidator(Geometry a, Geometry b, Geometry result)
public static boolean isValid(Geometry a, Geometry b, int overlayOp, Geometry result)
public boolean isValid(int overlayOp)
public Coordinate getInvalidLocation()