Package org.locationtech.jts.util
Class CoordinateCountFilter
java.lang.Object
org.locationtech.jts.util.CoordinateCountFilter
- All Implemented Interfaces:
CoordinateFilter
A
CoordinateFilter
that counts the total number of coordinates
in a Geometry
.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(Coordinate coord) Performs an operation with thecoord
.int
getCount()
Returns the result of the filtering.
-
Field Details
-
n
private int n
-
-
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
Description copied from interface:CoordinateFilter
Performs an operation with thecoord
. There is no guarantee that the coordinate is the actual object stored in the target geometry.- Specified by:
filter
in interfaceCoordinateFilter
- Parameters:
coord
- aCoordinate
to which the filter is applied.
-