BufferCurveMaximumDistanceFinder.MaxPointDistanceFilter
, CoordinateArrayFilter
, CoordinateCountFilter
, DiscreteHausdorffDistance.MaxPointDistanceFilter
, UniqueCoordinateArrayFilter
public interface CoordinateFilter
Geometry
.
Coordinate filters can be used to implement centroid and
envelope computation, and many other functions.
CoordinateFilter
is
an example of the Gang-of-Four Visitor pattern.
Note: it is not recommended to use these filters to mutate the coordinates.
There is no guarantee that the coordinate is the actual object stored in the geometry.
In particular, modified values may not be preserved if the target Geometry uses a non-default CoordinateSequence
.
If in-place mutation is required, use CoordinateSequenceFilter
.
Geometry.apply(CoordinateFilter)
,
CoordinateSequenceFilter
Modifier and Type | Method | Description |
---|---|---|
void |
filter(Coordinate coord) |
Performs an operation with the
coord . |
void filter(Coordinate coord)
coord
.
There is no guarantee that the coordinate is the actual object stored in the target geometry.coord
- a Coordinate
to which the filter is applied.Copyright © 2018. All rights reserved.