Class BufferCurveMaximumDistanceFinder
java.lang.Object
org.locationtech.jts.operation.buffer.validate.BufferCurveMaximumDistanceFinder
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
computeMaxVertexDistance
(Geometry curve) double
findDistance
(Geometry bufferCurve)
-
Field Details
-
inputGeom
-
maxPtDist
-
-
Constructor Details
-
BufferCurveMaximumDistanceFinder
-
-
Method Details
-
findDistance
-
getDistancePoints
-
computeMaxVertexDistance
-
computeMaxMidpointDistance
-