EcohydroLib  1.29
Classes | Namespaces | Functions | Variables
webservice.py File Reference

Classes

class  ecohydrolib.nhdplus2.webservice.WebserviceError
 

Namespaces

 ecohydrolib.nhdplus2.webservice
 Methods for querying the NHDPlus V2 data set via custom web service.
 

Functions

def ecohydrolib.nhdplus2.webservice.locateStreamflowGage (config, gageid)
 Query NHDPlus V2 web service for location information for streamflow gage listed in the NHDPlus V2 dataset. More...
 
def ecohydrolib.nhdplus2.webservice.getCatchmentFeaturesForStreamflowGage
 Query NHDPlus V2 web service for features (in WGS 84) for the drainage area associated with a given NHD (National Hydrography Dataset) streamflow gage identified by a reach code and measure. More...
 

Variables

string ecohydrolib.nhdplus2.webservice._DEFAULT_CRS = 'EPSG:4326'
 
int ecohydrolib.nhdplus2.webservice._BUFF_LEN = 4096
 
string ecohydrolib.nhdplus2.webservice.HOST = 'ga-dev-wssi.renci.org'
 
string ecohydrolib.nhdplus2.webservice.URL_PROTO_GAGE_LOC = '/cgi-bin/LocateStreamflowGage?gageid={gageid}'
 
string ecohydrolib.nhdplus2.webservice.URL_PROTO_CATCHMENT = '/cgi-bin/GetCatchmentFeaturesForStreamflowGage?reachcode={reachcode}&measure={measure}'
 
string ecohydrolib.nhdplus2.webservice.CONTENT_TYPE = 'application/json'
 
string ecohydrolib.nhdplus2.webservice.CONTENT_TYPE_ERROR = 'text/plain'
 
string ecohydrolib.nhdplus2.webservice.RESPONSE_OK = 'OK'