public class CoordTypeIterator extends GmlCoodinatesIterator
<gml:coord><gml:X>0</gml:X><gml:Y>0</gml:Y></gml:coord>
COORDINATES_DECIMAL, COORDINATES_SEPARATOR, coordinatesString, dimension, handler, lastTag, parser, TUPLES_SEPARATOR
Constructor and Description |
---|
CoordTypeIterator() |
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 |
initialize(IXmlStreamReader parser,
GPEDefaultGmlParser handler,
IQName lastTag)
It parses the gml:coord tag
|
void |
next(double[] buffer) |
parseAll
public void initialize(IXmlStreamReader parser, GPEDefaultGmlParser handler, IQName lastTag) throws XmlStreamException, IOException
initialize
in interface IGmlCoordinatesIterator
initialize
in class GmlCoodinatesIterator
parser
- The XML parserhandler
- The GPE parser that contains the content handler and
the error handlerlastTag
- The last tagXmlStreamException
IOException
public int getDimension()
ICoordinateIterator
ICoordinateIterator.next(double[])
getDimension
in interface ICoordinateIterator
getDimension
in class GmlCoodinatesIterator
public boolean hasNext() throws IOException
ICoordinateIterator
IOException
public void next(double[] buffer) throws IOException
buffer
- where to store the parsed coordinates. The buffer lenght shall be >=
ICoordinateIterator.getDimension()
IOException