public class CoordinateArrayFilter extends java.lang.Object implements CoordinateFilter
CoordinateFilter
that creates an array containing every
coordinate in a Geometry
.Modifier and Type | Field and Description |
---|---|
(package private) int |
n |
(package private) Coordinate[] |
pts |
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
Coordinate s. |
Coordinate[] pts
int n
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
.
There is no guarantee that the coordinate is the actual object stored in the target geometry.filter
in interface CoordinateFilter
coord
- a Coordinate
to which the filter is applied.