Class SnapIfNeededOverlayOp
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.snap.SnapIfNeededOverlayOp
-
public class SnapIfNeededOverlayOp extends Object
Performs an overlay operation using snapping and enhanced precision to improve the robustness of the result. This class only uses snapping if an error is detected when running the standard JTS overlay code. Errors detected include thrown exceptions (in particular,TopologyException) and invalid overlay computations.- Version:
- 1.7
- Author:
- Martin Davis
-
-
Constructor Summary
Constructors Constructor Description SnapIfNeededOverlayOp(Geometry g1, Geometry g2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Geometrydifference(Geometry g0, Geometry g1)GeometrygetResultGeometry(int opCode)static Geometryintersection(Geometry g0, Geometry g1)static GeometryoverlayOp(Geometry g0, Geometry g1, int opCode)static GeometrysymDifference(Geometry g0, Geometry g1)static Geometryunion(Geometry g0, Geometry g1)
-
-
-
Method Detail
-
getResultGeometry
public Geometry getResultGeometry(int opCode)
-
-