public class UniqueCoordinateArrayFilter extends Object implements CoordinateFilter
CoordinateFilter
that extracts a unique array of Coordinate
s.
The array 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 provided
coord . |
static Coordinate[] |
filterCoordinates(Coordinate[] coords)
Convenience method which allows running the filter over an array of
Coordinate s. |
Coordinate[] |
getCoordinates()
Returns the gathered
Coordinate s. |
public static Coordinate[] filterCoordinates(Coordinate[] coords)
Coordinate
s.coords
- an array of coordinatespublic Coordinate[] getCoordinates()
Coordinate
s.Coordinate
s collected by this CoordinateArrayFilter
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.CoordinateFilter.filter(Coordinate)
Copyright © 2022. All rights reserved.