Package org.locationtech.jts.precision
Class SimpleMinimumClearance
java.lang.Object
org.locationtech.jts.precision.SimpleMinimumClearance
Computes the minimum clearance of a geometry or
set of geometries.
The Minimum Clearance is a measure of what magnitude of perturbation of its vertices can be tolerated by a geometry before it becomes topologically invalid.
This class uses an inefficient O(N^2) scan. It is primarily for testing purposes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompute()doublestatic doublegetLine()static Geometryprivate voidupdateClearance(double candidateValue, Coordinate p0, Coordinate p1) private voidupdateClearance(double candidateValue, Coordinate p, Coordinate seg0, Coordinate seg1)
-
Field Details
-
inputGeom
-
minClearance
private double minClearance -
minClearancePts
-
-
Constructor Details
-
SimpleMinimumClearance
-
-
Method Details
-
getDistance
-
getLine
-
getDistance
public double getDistance() -
getLine
-
compute
private void compute() -
updateClearance
-
updateClearance
-