public static class DiscreteHausdorffDistance.MaxDensifiedByFractionDistanceFilter extends java.lang.Object implements CoordinateSequenceFilter
| Modifier and Type | Field and Description |
|---|---|
private Geometry |
geom |
private PointPairDistance |
maxPtDist |
private PointPairDistance |
minPtDist |
private int |
numSubSegs |
| Constructor and Description |
|---|
MaxDensifiedByFractionDistanceFilter(Geometry geom,
double fraction) |
| 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.
|
private PointPairDistance maxPtDist
private PointPairDistance minPtDist
private Geometry geom
private int numSubSegs
public MaxDensifiedByFractionDistanceFilter(Geometry geom, double fraction)
public void filter(CoordinateSequence seq, int index)
CoordinateSequenceFilterCoordinateSequence.filter in interface CoordinateSequenceFilterseq - the CoordinateSequence to which the filter is appliedindex - the index of the coordinate to apply the filter topublic boolean isGeometryChanged()
CoordinateSequenceFilterGeometry.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 CoordinateSequenceFilterpublic boolean isDone()
CoordinateSequenceFilterisDone in interface CoordinateSequenceFilterpublic PointPairDistance getMaxPointDistance()