Package org.locationtech.jts.precision
Class SimpleMinimumClearance
- java.lang.Object
-
- org.locationtech.jts.precision.SimpleMinimumClearance
-
public class SimpleMinimumClearance extends java.lang.Object
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:
MinimumClearance
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter
private static class
SimpleMinimumClearance.VertexCoordinateFilter
-
Field Summary
Fields Modifier and Type Field Description private Geometry
inputGeom
private double
minClearance
private Coordinate[]
minClearancePts
-
Constructor Summary
Constructors Constructor Description SimpleMinimumClearance(Geometry geom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
compute()
double
getDistance()
static double
getDistance(Geometry g)
LineString
getLine()
static Geometry
getLine(Geometry g)
private void
updateClearance(double candidateValue, Coordinate p0, Coordinate p1)
private void
updateClearance(double candidateValue, Coordinate p, Coordinate seg0, Coordinate seg1)
-
-
-
Field Detail
-
inputGeom
private Geometry inputGeom
-
minClearance
private double minClearance
-
minClearancePts
private Coordinate[] minClearancePts
-
-
Constructor Detail
-
SimpleMinimumClearance
public SimpleMinimumClearance(Geometry geom)
-
-
Method Detail
-
getDistance
public static double getDistance(Geometry g)
-
getDistance
public double getDistance()
-
getLine
public LineString getLine()
-
compute
private void compute()
-
updateClearance
private void updateClearance(double candidateValue, Coordinate p0, Coordinate p1)
-
updateClearance
private void updateClearance(double candidateValue, Coordinate p, Coordinate seg0, Coordinate seg1)
-
-