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
Coordinates. |
public CoordinateArrayFilter(int size)
CoordinateArrayFilter.size - the number of points that the CoordinateArrayFilter
will collectpublic Coordinate[] getCoordinates()
Coordinates.Coordinates collected by this CoordinateArrayFilterpublic void filter(Coordinate coord)
CoordinateFiltercoord.
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 CoordinateFiltercoord - a Coordinate to which the filter is applied.Copyright © 2024. All rights reserved.