public class BufferCurveMaximumDistanceFinder
extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter |
static class |
BufferCurveMaximumDistanceFinder.MaxPointDistanceFilter |
Modifier and Type | Field and Description |
---|---|
private Geometry |
inputGeom |
private PointPairDistance |
maxPtDist |
Constructor and Description |
---|
BufferCurveMaximumDistanceFinder(Geometry inputGeom) |
Modifier and Type | Method and Description |
---|---|
private void |
computeMaxMidpointDistance(Geometry curve) |
private void |
computeMaxVertexDistance(Geometry curve) |
double |
findDistance(Geometry bufferCurve) |
PointPairDistance |
getDistancePoints() |
private Geometry inputGeom
private PointPairDistance maxPtDist
public BufferCurveMaximumDistanceFinder(Geometry inputGeom)
public double findDistance(Geometry bufferCurve)
public PointPairDistance getDistancePoints()
private void computeMaxVertexDistance(Geometry curve)
private void computeMaxMidpointDistance(Geometry curve)