Package org.locationtech.jts.geom
Interface CoordinateFilter
-
- All Known Implementing Classes:
BufferCurveMaximumDistanceFinder.MaxPointDistanceFilter
,CoordinateArrayFilter
,CoordinateCountFilter
,DiscreteHausdorffDistance.MaxPointDistanceFilter
,UniqueCoordinateArrayFilter
public interface CoordinateFilter
An interface for classes which use the values of the coordinates in aGeometry
. 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 source geometry. In particular, modified values may not be preserved if the source Geometry uses a non-default
CoordinateSequence
. If in-place mutation is required, useCoordinateSequenceFilter
.- Version:
- 1.7
- See Also:
Geometry.apply(CoordinateFilter)
,CoordinateSequenceFilter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
filter(Coordinate coord)
Performs an operation with the providedcoord
.
-
-
-
Method Detail
-
filter
void filter(Coordinate coord)
Performs an operation with the providedcoord
. Note that there is no guarantee that the input coordinate is the actual object stored in the source geometry, so changes to the coordinate object may not be persistent.- Parameters:
coord
- aCoordinate
to which the filter is applied.
-
-