Class LineStringTypeBinding

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

public class LineStringTypeBinding extends GeometryBinding
A LineString is a special curve that consists of a single segment with linear interpolation. It is defined by two or more coordinate tuples, with linear interpolation between them. It parses a gml:LineStringType object. Example:

 
 <LineString>
 <coord><X>56.1</X><Y>0.45</Y></coord>
 <coord><X>67.23</X><Y>0.98</Y></coord>
 </LineString>
 
 

Author:
Jorge Piera LlodrĂ¡ (piera_jor@gva.es)
  • Constructor Details

    • LineStringTypeBinding

      public LineStringTypeBinding()
  • 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:LineQName tag
      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 line
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException
    • parseTag

      protected Object parseTag(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler, org.gvsig.xmlpull.lib.api.stream.IQName tag, String id, String srsName) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException
      It parses next tag
      Parameters:
      parser -
      handler -
      tag -
      id -
      srsName -
      Returns:
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException