public class PointCoordinatesSequence extends java.lang.Object implements ICoordinateSequence, ICoordinateIterator
Constructor and Description |
---|
PointCoordinatesSequence(Point point) |
Modifier and Type | Method and Description |
---|---|
int |
getDimension()
Returns the dimension of the coordinate tuple being served.
|
int |
getSize()
Returns the size of the coordinates that the writer has to
write.
|
boolean |
hasNext()
Returns whether there are more coordinates in this sequence
|
ICoordinateIterator |
iterator()
Returns the iterator necessary to retrieve all the coordinates
that compose the geometry
|
void |
next(double[] buffer) |
public PointCoordinatesSequence(Point point)
public int getSize()
ICoordinateSequence
getSize
in interface ICoordinateSequence
public ICoordinateIterator iterator()
ICoordinateSequence
iterator
in interface ICoordinateSequence
public boolean hasNext() throws java.io.IOException
ICoordinateIterator
hasNext
in interface ICoordinateIterator
java.io.IOException
public int getDimension()
ICoordinateIterator
ICoordinateIterator.next(double[])
getDimension
in interface ICoordinateIterator
public void next(double[] buffer) throws java.io.IOException
next
in interface ICoordinateIterator
buffer
- where to store the parsed coordinates. The buffer lenght shall be >=
ICoordinateIterator.getDimension()
java.io.IOException