Class BufferCurveMaximumDistanceFinder

java.lang.Object
org.locationtech.jts.operation.buffer.validate.BufferCurveMaximumDistanceFinder

public class BufferCurveMaximumDistanceFinder extends Object
Finds the approximate maximum distance from a buffer curve to the originating geometry. This is similar to the Discrete Oriented Hausdorff distance from the buffer curve to the input.

The approximate maximum distance is determined by testing all vertices in the buffer curve, as well as midpoints of the curve segments. Due to the way buffer curves are constructed, this should be a very close approximation.

Author:
mbdavis
  • Constructor Details

    • BufferCurveMaximumDistanceFinder

      public BufferCurveMaximumDistanceFinder(Geometry inputGeom)
  • Method Details

    • findDistance

      public double findDistance(Geometry bufferCurve)
    • getDistancePoints

      public PointPairDistance getDistancePoints()