Class CoordinateCountFilter

java.lang.Object
org.locationtech.jts.util.CoordinateCountFilter
All Implemented Interfaces:
CoordinateFilter

public class CoordinateCountFilter extends Object implements CoordinateFilter
A CoordinateFilter that counts the total number of coordinates in a Geometry.
Version:
1.7
  • Constructor Details

    • CoordinateCountFilter

      public CoordinateCountFilter()
  • Method Details

    • getCount

      public int getCount()
      Returns the result of the filtering.
      Returns:
      the number of points found by this CoordinateCountFilter
    • filter

      public void filter(Coordinate coord)
      Description copied from interface: CoordinateFilter
      Performs an operation with the provided 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.
      Specified by:
      filter in interface CoordinateFilter
      Parameters:
      coord - a Coordinate to which the filter is applied.