public class SimpleMinimumClearance
extends java.lang.Object
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.
MinimumClearance
Modifier and Type | Class and Description |
---|---|
private static class |
SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter |
private static class |
SimpleMinimumClearance.VertexCoordinateFilter |
Modifier and Type | Field and Description |
---|---|
private Geometry |
inputGeom |
private double |
minClearance |
private Coordinate[] |
minClearancePts |
Constructor and Description |
---|
SimpleMinimumClearance(Geometry geom) |
Modifier and Type | Method and 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) |
private Geometry inputGeom
private double minClearance
private Coordinate[] minClearancePts
public SimpleMinimumClearance(Geometry geom)
public static double getDistance(Geometry g)
public double getDistance()
public LineString getLine()
private void compute()
private void updateClearance(double candidateValue, Coordinate p0, Coordinate p1)
private void updateClearance(double candidateValue, Coordinate p, Coordinate seg0, Coordinate seg1)