Interface CoordinateFilter

All Known Implementing Classes:
BufferCurveMaximumDistanceFinder.MaxPointDistanceFilter, CommonBitsRemover.CommonCoordinateFilter, CoordinateArrayFilter, CoordinateCountFilter, DiscreteHausdorffDistance.MaxPointDistanceFilter, SimpleMinimumClearance.VertexCoordinateFilter, TopologyStretcher.VertexInMaskCountCoordinateFilter, UniqueCoordinateArrayFilter

public interface CoordinateFilter
An interface for classes which use the values of the coordinates in a 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.

Version:
1.7
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs an operation with the coord.
  • Method Details

    • filter

      void filter(Coordinate coord)
      Performs an operation with the coord. There is no guarantee that the coordinate is the actual object stored in the target geometry.
      Parameters:
      coord - a Coordinate to which the filter is applied.