public class OrientablePrimitiveCoordinateSequence extends java.lang.Object implements ICoordinateSequence, ICoordinateIterator
Constructor and Description |
---|
OrientablePrimitiveCoordinateSequence(OrientablePrimitive orientablePrimitive) |
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 OrientablePrimitiveCoordinateSequence(OrientablePrimitive orientablePrimitive)
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
public int getSize()
ICoordinateSequence
getSize
in interface ICoordinateSequence
public ICoordinateIterator iterator()
ICoordinateSequence
iterator
in interface ICoordinateSequence