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
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
.
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.Copyright © 2016. All rights reserved.