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 TypeMethodDescriptionvoidfilter(Coordinate coord) Performs an operation with thecoord.Returns the gatheredCoordinates.
-
Field Details
-
pts
Coordinate[] pts -
n
int n
-
-
Constructor Details
-
CoordinateArrayFilter
public CoordinateArrayFilter(int size) Constructs aCoordinateArrayFilter.- Parameters:
size- the number of points that theCoordinateArrayFilterwill collect
-
-
Method Details
-
getCoordinates
Returns the gatheredCoordinates.- Returns:
- the
Coordinates collected by thisCoordinateArrayFilter
-
filter
Description copied from interface:CoordinateFilterPerforms an operation with thecoord. There is no guarantee that the coordinate is the actual object stored in the target geometry.- Specified by:
filterin interfaceCoordinateFilter- Parameters:
coord- aCoordinateto which the filter is applied.
-