Class LinearRingTypeBinding

java.lang.Object
org.gvsig.gpe.prov.gml.parser.v2.geometries.GeometryBinding
org.gvsig.gpe.prov.gml.parser.v2.geometries.LinearRingTypeBinding
Direct Known Subclasses:
LinearRingTypeBinding

public class LinearRingTypeBinding extends GeometryBinding
It parses a gml:linearRingType object. 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

    • LinearRingTypeBinding

      public LinearRingTypeBinding()
  • Method Details

    • parse

      public Object parse(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException
      It parses the gml:LinearRing tag and return the Object
      Overrides:
      parse in class GeometryBinding
      Parameters:
      parser - The XML parser
      handler - The GPE parser that contains the content handler and the error handler
      Returns:
      A linear ring
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException
    • parseCoordinates

      public ICoordinateIterator parseCoordinates(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException
      It parses the gml:LinearRing tag and return the coordinates
      Parameters:
      parser - The XML parser
      handler - The GPE parser that contains the content handler and the error handler
      Returns:
      An array of coordinates
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException
      PolygonNotClosedWarning
    • parseTag_

      protected ICoordinateIterator parseTag_(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler, org.gvsig.xmlpull.lib.api.stream.IQName tag) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException
      Parameters:
      parser -
      handler -
      tag -
      coordsContainer -
      Returns:
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException