Class SnapOverlayOp
java.lang.Object
org.locationtech.jts.operation.overlay.snap.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.
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
static Geometry
difference
(Geometry g0, Geometry g1) getResultGeometry
(int opCode) static Geometry
intersection
(Geometry g0, Geometry g1) static Geometry
private Geometry
prepareResult
(Geometry geom) private Geometry[]
removeCommonBits
(Geometry[] geom) private Geometry
private Geometry[]
static Geometry
symDifference
(Geometry g0, Geometry g1) static Geometry
-
Field Details
-
geom
-
snapTolerance
private double snapTolerance -
cbr
-
-
Constructor Details
-
SnapOverlayOp
-
-
Method Details
-
overlayOp
-
intersection
-
union
-
difference
-
symDifference
-
computeSnapTolerance
private void computeSnapTolerance() -
getResultGeometry
-
selfSnap
-
snap
-
prepareResult
-
removeCommonBits
-
checkValid
-