public interface ICoordinateIterator
IGPEContentHandler
.
This provides an abstraction for specific format parsers to optimize as needed without imposing a coordinate structure to the consumer application which may be inefficient for its geometry model.
Basically, using this interface allows for the following optimizations:
Modifier and Type | Method and Description |
---|---|
int |
getDimension()
Returns the dimension of the coordinate tuple being served.
|
boolean |
hasNext()
Returns whether there are more coordinates in this sequence
|
void |
next(double[] buffer) |
boolean hasNext() throws IOException
IOException
int getDimension()
next(double[])
void next(double[] buffer) throws IOException
buffer
- where to store the parsed coordinates. The buffer lenght shall be >=
getDimension()
IOException