Class LinearRingBinding

java.lang.Object
org.gvsig.gpe.prov.kml.parser.v21.geometries.LinearRingBinding

public class LinearRingBinding extends Object
It parses the linearRing KML tag. Example:

 
 <LinearRing>
 <coordinates>0.0,0.0 100.0,0.0 50.0,100.0 0.0,0.0</coordinates>
 </LinearRing>
 
 

Author:
Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
  • Constructor Details

    • LinearRingBinding

      public LinearRingBinding()
  • Method Details

    • parse

      public ICoordinateIterator parse(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDeafultKmlParser handler) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException
      It parses the linearRing tag
      Parameters:
      parser - The XML parser
      handler - The GPE parser that contains the content handler and the error handler
      Returns:
      It retuns a matrix of doubles with 3 columns (x,y,z) and one row for each coordinate.
      Throws:
      IOException
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException