Class SnapOverlayOp

Hierarchy: Object , SnapOverlayOp
public class SnapOverlayOp
Performs an overlay operation using snapping and enhanced precision to improve the robustness of the result. This class always uses snapping. This is less performant than the standard JTS overlay code, and may even introduce errors which were not present in the original data. For this reason, this class should only be used if the standard overlay code fails to produce a correct result.
Authors:
Martin Davis

Other

  • version: 1.7
public SnapOverlayOp(Geometry g1, Geometry g2)
public static Geometry overlayOp(Geometry g0, Geometry g1, int opCode)
public static Geometry intersection(Geometry g0, Geometry g1)
public static Geometry union(Geometry g0, Geometry g1)
public static Geometry difference(Geometry g0, Geometry g1)
public static Geometry symDifference(Geometry g0, Geometry g1)
public Geometry getResultGeometry(int opCode)