public class LatLonBoxIterator extends KmlCoodinatesIterator
<LatLonAltBox>
<north>43.374</north>
<south>42.983</south>
<east>-0.335</east>
<west>-1.423</west>
<rotation>39.37878630116985</rotation>
</LatLonAltBox>
http://code.google.com/apis/kml/documentation/kml_tags_21.html#latlonbox
coordinatesString, dimension, handler, lastTag, parser
Constructor and Description |
---|
LatLonBoxIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns whether there are more coordinates in this sequence
|
void |
next(double[] buffer) |
Object |
parse(IXmlStreamReader parser,
GPEDeafultKmlParser handler)
It parses the LatLonAltBox tag
|
getDimension, initialize, parseAll
public Object parse(IXmlStreamReader parser, GPEDeafultKmlParser handler) throws XmlStreamException, IOException
parser
- The XML parserhandler
- The GPE parser that contains the content handler and
the error handlerIOException
XmlStreamException
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