CoordinateFilter
An interface for classes which use the values of the coordinates in a {link Geometry}. Coordinate filters can be used to implement centroid and envelope computation, and many other functions.
<code>CoordinateFilter</code> is an example of the Gang-of-Four Visitor pattern.
<b>Note</b>: 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 {link CoordinateSequence}. If in-place mutation is required, use {link CoordinateSequenceFilter}.
- See also
Geometry#apply(CoordinateFilter)
CoordinateSequenceFilter
- Version
1.7
Value members
Abstract methods
Performs an operation with the provided <code>coord</code>. 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.
Performs an operation with the provided <code>coord</code>. 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.
- Value Params
- coord
a <code>Coordinate</code> to which the filter is applied.