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
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.
There is no guarantee that the coordinate is the actual object stored in the target geometry.filter in interface CoordinateFiltercoord - a Coordinate to which the filter is applied.Copyright © 2019. All rights reserved.