public class UniqueCoordinateArrayFilter extends Object implements CoordinateFilter
CoordinateFilter
that builds a set of Coordinate
s.
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
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
.
There is no guarantee that the coordinate is the actual object stored in the target geometry.filter
in interface CoordinateFilter
coord
- a Coordinate
to which the filter is applied.Copyright © 2016. All rights reserved.