Package org.locationtech.jts.util
Class UniqueCoordinateArrayFilter
java.lang.Object
org.locationtech.jts.util.UniqueCoordinateArrayFilter
- All Implemented Interfaces:
CoordinateFilter
A
CoordinateFilter
that builds a set of Coordinate
s.
The set of coordinates contains no duplicate points.
It preserves the order of the input points.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(Coordinate coord) Performs an operation with thecoord
.static Coordinate[]
filterCoordinates
(Coordinate[] coords) Convenience method which allows running the filter over an array ofCoordinate
s.Returns the gatheredCoordinate
s.
-
Field Details
-
Constructor Details
-
UniqueCoordinateArrayFilter
public UniqueCoordinateArrayFilter()
-
-
Method Details
-
filterCoordinates
Convenience method which allows running the filter over an array ofCoordinate
s.- Parameters:
coords
- an array of coordinates- Returns:
- an array of the unique coordinates
-
getCoordinates
Returns the gatheredCoordinate
s.- Returns:
- the
Coordinate
s collected by thisCoordinateArrayFilter
-
filter
Description copied from interface:CoordinateFilter
Performs an operation with thecoord
. There is no guarantee that the coordinate is the actual object stored in the target geometry.- Specified by:
filter
in interfaceCoordinateFilter
- Parameters:
coord
- aCoordinate
to which the filter is applied.
-