Class FeatureTypeBinding

java.lang.Object
org.gvsig.gpe.prov.gml.parser.v2.features.FeatureTypeBinding

public class FeatureTypeBinding extends Object
This class parses the gml objects that has a gml:_Feature object type. The structure of the properties that this type has is variable and depends on its schema. Example:

 
 <cit:cities>
 <cit:the_geom>
 <gml:Point srsName='0'>
 <gml:coordinates>-123.06999969482422,49.411192817494346</gml:coordinates>
 </gml:Point>
 </cit:the_geom>
 <cit:NAME>Vancouver</cit:NAME>
 <cit:CAPITAL>N</cit:CAPITAL>
 <cit:PROV_NAME>British Columbia</cit:PROV_NAME>
 </cit:cities>
 
 

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

    • FeatureTypeBinding

      public FeatureTypeBinding()
  • 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 a feature
      Parameters:
      parser - The XML parser
      handler - The GPE parser that contains the content handler and the error handler
      Returns:
      A feature
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException
    • getID

      public String getID(GPEDefaultGmlParser handler, Map hash)
      It returns a the feaure id attribute
      Parameters:
      hash - Hashtable with the XML attributes
      Returns:
      The id