EcohydroLib  1.29
Functions | Variables
ecohydrolib.hydro1k.demtile Namespace Reference

Extract tile for HYDRO1k digital elevation model (DEM) stored locally. More...

Functions

def getDEMForBoundingBox
 Extract tile of HYDRO1k digital elevation model (DEM) for bounding box. More...
 

Variables

string DEFAULT_CRS = 'EPSG:2163'
 

Detailed Description

Extract tile for HYDRO1k digital elevation model (DEM) stored locally.

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 ecohydrolib.hydro1k.demtile.getDEMForBoundingBox (   config,
  outputDir,
  outDEMFilename,
  bbox,
  srs = 'EPSG:4326',
  overwrite = True 
)

Extract tile of HYDRO1k digital elevation model (DEM) for bounding box.

Parameters
configPython ConfigParser containing the following sections and options: 'GDAL/OGR', 'PATH_OF_GDAL_TRANSLATE' 'HYDRO1k', 'PATH_OF_HYDRO1k_DEM'
outputDirString representing the absolute/relative path of the directory into which output DEM should be written
outDEMFilenameString representing the name of the DEM file to be written
bboxDict representing the lat/long coordinates and spatial reference of the bounding box area for which the DEM is to be extracted. The following keys must be specified: minX, minY, maxX, maxY, srs.
srsString representing the spatial reference of the raster to be returned.
overwriteBoolean value indicating whether or not the file indicated by filename should be overwritten. If False and filename exists, IOError exception will be thrown with errno.EEXIST
Returns
True if DEM tile was created and False if not.

Variable Documentation

string ecohydrolib.hydro1k.demtile.DEFAULT_CRS = 'EPSG:2163'