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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(Coordinate coord) Performs an operation with the providedcoord.Returns the gatheredCoordinates.
-
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 the providedcoord. 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.- Specified by:
filterin interfaceCoordinateFilter- Parameters:
coord- aCoordinateto which the filter is applied.
-