Class CoordinateArrayFilter

java.lang.Object
org.locationtech.jts.util.CoordinateArrayFilter
All Implemented Interfaces:
CoordinateFilter

public class CoordinateArrayFilter extends Object implements CoordinateFilter
A CoordinateFilter that creates an array containing every coordinate in a Geometry.
Version:
1.7
  • Constructor Details

    • CoordinateArrayFilter

      public CoordinateArrayFilter(int size)
      Constructs a CoordinateArrayFilter.
      Parameters:
      size - the number of points that the CoordinateArrayFilter will collect
  • Method Details

    • getCoordinates

      public Coordinate[] getCoordinates()
      Returns the gathered Coordinates.
      Returns:
      the Coordinates collected by this CoordinateArrayFilter
    • filter

      public void filter(Coordinate coord)
      Description copied from interface: CoordinateFilter
      Performs an operation with the provided coord. 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:
      filter in interface CoordinateFilter
      Parameters:
      coord - a Coordinate to which the filter is applied.