CoordinateFilter
public class UniqueCoordinateArrayFilter extends java.lang.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 | Description |
---|---|
UniqueCoordinateArrayFilter() |
Modifier and Type | Method | 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 © 2018. All rights reserved.