Package org.locationtech.jts.util
Class CoordinateArrayFilter
java.lang.Object
org.locationtech.jts.util.CoordinateArrayFilter
- All Implemented Interfaces:
CoordinateFilter
A
CoordinateFilter
that creates an array containing every
coordinate in a Geometry
.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(Coordinate coord) Performs an operation with thecoord
.Returns the gatheredCoordinate
s.
-
Field Details
-
pts
Coordinate[] pts -
n
int n
-
-
Constructor Details
-
CoordinateArrayFilter
public CoordinateArrayFilter(int size) Constructs aCoordinateArrayFilter
.- Parameters:
size
- the number of points that theCoordinateArrayFilter
will collect
-
-
Method Details
-
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.
-