EcohydroWorkflowLib  0.973
 All Classes Namespaces Files Functions Variables Pages
Functions | Variables
ecohydroworkflowlib.ssurgo.featurequery Namespace Reference

Make feature queries against USDA Soil Data Mart OGC web service interface. More...

Functions

def getMapunitFeaturesForBoundingBox
 Query USDA Soil Data Mart for SSURGO Mapunit features with a given bounding box.
 

Variables

int MAX_SSURGO_EXTENT 10000000000
 
string WFS_URL 'http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMWGS84Geographic.wfs'
 

Detailed Description

Make feature queries against USDA Soil Data Mart OGC web service interface.

This software is provided free of charge under the New BSD License. Please see the following license information:

Copyright (c) 2013, University of North Carolina at Chapel Hill All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Author
Brian Miles brian.nosp@m._mil.nosp@m.es@un.nosp@m.c.ed.nosp@m.u

Function Documentation

def ecohydroworkflowlib.ssurgo.featurequery.getMapunitFeaturesForBoundingBox (   outputDir,
  bbox,
  mapunitExtended = False,
  tileBbox = False 
)

Query USDA Soil Data Mart for SSURGO Mapunit features with a given bounding box.

     Features will be written to one or more GML files, one file for each bboxTile tile,
     stored in the specified output directory. The filename will be returned as a string.
     Will fetch SSURGO tabular data (see ssurgolib.attributequery.attributeList for a list
     of attributes) and join those data to the features in the GML files(s).
Note
Will silently exit if features already exist.
Parameters
outputDirString representing the absolute/relative path of the directory into which features should be written
bboxA dict containing keys: minX, minY, maxX, maxY, srs, where srs='EPSG:4326'
mapunitExtendedTrue if extended mapunit features should be fetched.
tileBoundingBoxTrue if bounding box should be tiled if extent exceeds featurequery.MAX_SSURGO_EXTENT
Returns
A list of strings representing the name of the GML file(s) to which the mapunit features were saved.
     @exception IOError if output directory is not a directory
     @exception IOError if output directory is not writable
     @exception Exception if bounding box area is greater than MAX_SSURGO_EXTENT

Variable Documentation

int ecohydroworkflowlib.ssurgo.featurequery.MAX_SSURGO_EXTENT 10000000000
string ecohydroworkflowlib.ssurgo.featurequery.WFS_URL 'http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMWGS84Geographic.wfs'