public static class BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter extends Object implements CoordinateSequenceFilter
Constructor and Description |
---|
MaxMidpointDistanceFilter(Geometry geom) |
Modifier and Type | Method and Description |
---|---|
void |
filter(CoordinateSequence seq,
int index)
Performs an operation on a coordinate in a
CoordinateSequence . |
PointPairDistance |
getMaxPointDistance() |
boolean |
isDone()
Reports whether the application of this filter can be terminated.
|
boolean |
isGeometryChanged()
Reports whether the execution of this filter
has modified the coordinates of the geometry.
|
public MaxMidpointDistanceFilter(Geometry geom)
public void filter(CoordinateSequence seq, int index)
CoordinateSequenceFilter
CoordinateSequence
.filter
in interface CoordinateSequenceFilter
seq
- the CoordinateSequence
to which the filter is appliedindex
- the index of the coordinate to apply the filter topublic boolean isGeometryChanged()
CoordinateSequenceFilter
Geometry.geometryChanged()
will be executed
after this filter has finished being executed.
Most filters can simply return a constant value reflecting whether they are able to change the coordinates.
isGeometryChanged
in interface CoordinateSequenceFilter
public boolean isDone()
CoordinateSequenceFilter
isDone
in interface CoordinateSequenceFilter
public PointPairDistance getMaxPointDistance()
Copyright © 2022. All rights reserved.