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' |
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.
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).
outputDir | String representing the absolute/relative path of the directory into which features should be written |
bbox | A dict containing keys: minX, minY, maxX, maxY, srs, where srs='EPSG:4326' |
mapunitExtended | True if extended mapunit features should be fetched. |
tileBoundingBox | True if bounding box should be tiled if extent exceeds featurequery.MAX_SSURGO_EXTENT |
@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
int ecohydroworkflowlib.ssurgo.featurequery.MAX_SSURGO_EXTENT 10000000000 |
string ecohydroworkflowlib.ssurgo.featurequery.WFS_URL 'http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMWGS84Geographic.wfs' |