public interface CoordinateFilter
Geometry. Coordinate filters can be used to implement centroid and envelope computation, and many other functions.
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
If in-place mutation is required, use
void filter(Coordinate coord)
coord. 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.
Coordinateto which the filter is applied.
Copyright © 2020. All rights reserved.