Class SnapOverlayOp
- java.lang.Object
-
- org.locationtech.jts.operation.overlay.snap.SnapOverlayOp
-
public class SnapOverlayOp extends java.lang.ObjectPerforms 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.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private CommonBitsRemovercbrprivate Geometry[]geomprivate doublesnapTolerance
-
Constructor Summary
Constructors Constructor Description SnapOverlayOp(Geometry g1, Geometry g2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckValid(Geometry g)private voidcomputeSnapTolerance()static Geometrydifference(Geometry g0, Geometry g1)GeometrygetResultGeometry(int opCode)static Geometryintersection(Geometry g0, Geometry g1)static GeometryoverlayOp(Geometry g0, Geometry g1, int opCode)private GeometryprepareResult(Geometry geom)private Geometry[]removeCommonBits(Geometry[] geom)private GeometryselfSnap(Geometry geom)private Geometry[]snap(Geometry[] geom)static GeometrysymDifference(Geometry g0, Geometry g1)static Geometryunion(Geometry g0, Geometry g1)
-
-
-
Field Detail
-
geom
private Geometry[] geom
-
snapTolerance
private double snapTolerance
-
cbr
private CommonBitsRemover cbr
-
-