public class UniqueCoordinateArrayFilter extends Object implements CoordinateFilter
CoordinateFilter that extracts a unique array of Coordinates.
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
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.
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 CoordinateFiltercoord - a Coordinate to which the filter is applied.CoordinateFilter.filter(Coordinate)Copyright © 2024. All rights reserved.