public class CoordinateCountFilter extends Object implements CoordinateFilter
CoordinateFilter
that counts the total number of coordinates
in a Geometry
.Constructor and Description |
---|
CoordinateCountFilter() |
Modifier and Type | Method and Description |
---|---|
void |
filter(Coordinate coord)
Performs an operation with the provided
coord . |
int |
getCount()
Returns the result of the filtering.
|
public int getCount()
CoordinateCountFilter
public void filter(Coordinate coord)
CoordinateFilter
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.filter
in interface CoordinateFilter
coord
- a Coordinate
to which the filter is applied.Copyright © 2022. All rights reserved.