Package org.locationtech.jts.util
Class CoordinateArrayFilter
- java.lang.Object
-
- org.locationtech.jts.util.CoordinateArrayFilter
-
- All Implemented Interfaces:
CoordinateFilter
public class CoordinateArrayFilter extends Object implements CoordinateFilter
ACoordinateFilterthat creates an array containing every coordinate in aGeometry.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description CoordinateArrayFilter(int size)Constructs aCoordinateArrayFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(Coordinate coord)Performs an operation with the providedcoord.Coordinate[]getCoordinates()Returns the gatheredCoordinates.
-
-
-
Method Detail
-
getCoordinates
public Coordinate[] getCoordinates()
Returns the gatheredCoordinates.- Returns:
- the
Coordinates collected by thisCoordinateArrayFilter
-
filter
public void filter(Coordinate coord)
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.
-
-