Package org.locationtech.jts.util
Class CoordinateCountFilter
- java.lang.Object
-
- org.locationtech.jts.util.CoordinateCountFilter
-
- All Implemented Interfaces:
CoordinateFilter
public class CoordinateCountFilter extends java.lang.Object implements CoordinateFilter
ACoordinateFilter
that counts the total number of coordinates in aGeometry
.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description CoordinateCountFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Coordinate coord)
Performs an operation with the providedcoord
.int
getCount()
Returns the result of the filtering.
-
-
-
Method Detail
-
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 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.- Specified by:
filter
in interfaceCoordinateFilter
- Parameters:
coord
- aCoordinate
to which the filter is applied.
-
-