public class UniqueCoordinateArrayFilter extends Object implements CoordinateFilter
CoordinateFilter that builds a set of Coordinates.
The set of coordinates contains no duplicate points.
It preserves the order of the input points.| Constructor and Description |
|---|
UniqueCoordinateArrayFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Coordinate coord)
Performs an operation with the
coord. |
static Coordinate[] |
filterCoordinates(Coordinate[] coords)
Convenience method which allows running the filter over an array of
Coordinates. |
Coordinate[] |
getCoordinates()
Returns the gathered
Coordinates. |
public static Coordinate[] filterCoordinates(Coordinate[] coords)
Coordinates.coords - an array of coordinatespublic Coordinate[] getCoordinates()
Coordinates.Coordinates collected by this CoordinateArrayFilterpublic void filter(Coordinate coord)
CoordinateFiltercoord.
There is no guarantee that the coordinate is the actual object stored in the target geometry.filter in interface CoordinateFiltercoord - a Coordinate to which the filter is applied.Copyright © 2019. All rights reserved.