EcohydroLib  1.29
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler Class Reference

Parse SSURGO features fetched from USDA soil datamart WFS 1.0.0 web service. More...

Inheritance diagram for ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler:

Public Member Functions

def __init__ (self)
 Default constructor. More...
 
def characters (self, content)
 Called when character data are encountered. More...
 
def startElement (self, name, attrs)
 Called at the start of an element. More...
 
def endElement (self, name)
 Called at the end of an element. More...
 
def __init__ (self)
 Default constructor. More...
 
def characters (self, content)
 Called when character data are encountered. More...
 
def startElement (self, name, attrs)
 Called at the start of an element. More...
 
def endElement (self, name)
 Called at the end of an element. More...
 

Public Attributes

 ms_MUKEY
 
 ms_MapunitPolyExtended
 
 ms_MapunitPoly
 
 gml_featureMember
 
 wfs_FeatureCollection
 

Static Public Attributes

string wfs_FeatureCollection = "wfs:featurecollection"
 
string gml_featureMember = "gml:featuremember"
 
string ms_MapunitPoly = "ms:mapunitpoly"
 
string ms_MapunitPolyExtended = "ms:mapunitpolyextended"
 
string ms_MUKEY = "ms:mukey"
 
 inWfsFeatureCollection = False
 
 inGmlFeatureMember = False
 
 inMapunitPolyExtended = False
 
 inMapunitPoly = False
 
 getMukey = False
 
 mukeys = None
 

Detailed Description

Parse SSURGO features fetched from USDA soil datamart WFS 1.0.0 web service.

Currently pulls out MUKEYs for each feature returned as either MapunitPoly or MapunitPolyExtended For example: /wfs:FeatureCollection/gml:featureMember/ms:MapunitPolyExtended/ms:MUKEY /wfs:FeatureCollection/gml:featureMember/ms:MapunitPoly/ms:MUKEY

Note
Parses with namespaces turned off. Parse also assumes XML is well-formed

Constructor & Destructor Documentation

def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.__init__ (   self)

Default constructor.

Parameters
selfThis object
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.__init__ (   self)

Default constructor.

Parameters
selfThis object

Member Function Documentation

def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.characters (   self,
  content 
)

Called when character data are encountered.

Parameters
selfThis object
contentString containing characters
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.characters (   self,
  content 
)

Called when character data are encountered.

Parameters
selfThis object
contentString containing characters
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.endElement (   self,
  name 
)

Called at the end of an element.

Parameters
selfThis object
nameThe name of the object
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.endElement (   self,
  name 
)

Called at the end of an element.

Parameters
selfThis object
nameThe name of the object
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.startElement (   self,
  name,
  attrs 
)

Called at the start of an element.

Parameters
selfThis object
nameThe name of the object
attrsAttributes of the element
def ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.startElement (   self,
  name,
  attrs 
)

Called at the start of an element.

Parameters
selfThis object
nameThe name of the object
attrsAttributes of the element

Member Data Documentation

ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.getMukey = False
static
string ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.gml_featureMember = "gml:featuremember"
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.gml_featureMember
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.inGmlFeatureMember = False
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.inMapunitPoly = False
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.inMapunitPolyExtended = False
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.inWfsFeatureCollection = False
static
string ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MapunitPoly = "ms:mapunitpoly"
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MapunitPoly
string ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MapunitPolyExtended = "ms:mapunitpolyextended"
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MapunitPolyExtended
string ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MUKEY = "ms:mukey"
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.ms_MUKEY
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.mukeys = None
static
string ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.wfs_FeatureCollection = "wfs:featurecollection"
static
ecohydrolib.ssurgo.saxhandlers.SSURGOFeatureHandler.wfs_FeatureCollection

The documentation for this class was generated from the following file: