Class 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
    • Field Detail

      • 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()
      • compute

        private void compute()
      • updateClearance

        private void updateClearance​(double candidateValue,
                                     Coordinate p0,
                                     Coordinate p1)