public class CoordinateArrayFilter extends Object implements CoordinateFilter
CoordinateFilter
that creates an array containing every
coordinate in a Geometry
.Constructor and Description |
---|
CoordinateArrayFilter(int size)
Constructs a
CoordinateArrayFilter . |
Modifier and Type | Method and Description |
---|---|
void |
filter(Coordinate coord)
Performs an operation with the provided
coord . |
Coordinate[] |
getCoordinates()
Returns the gathered
Coordinate s. |
public CoordinateArrayFilter(int size)
CoordinateArrayFilter
.size
- the number of points that the CoordinateArrayFilter
will collectpublic Coordinate[] getCoordinates()
Coordinate
s.Coordinate
s collected by this CoordinateArrayFilter
public void filter(Coordinate coord)
CoordinateFilter
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.filter
in interface CoordinateFilter
coord
- a Coordinate
to which the filter is applied.Copyright © 2022. All rights reserved.