EcohydroWorkflowLib  0.973
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Functions | Variables
utils.py File Reference

Namespaces

namespace  ecohydroworkflowlib.spatialdata.utils
 Generic utilities for manipulating spatial data sets.
 

Functions

def ecohydroworkflowlib.spatialdata.utils.getEPSGStringForUTMZone
 Get EPSG string, e.g.
 
def ecohydroworkflowlib.spatialdata.utils.getUTMZoneFromCoordinates
 Determine the UTM zone for coordinate pair.
 
def ecohydroworkflowlib.spatialdata.utils.transformCoordinates
 Transform a pair of X,Y coordinates from one reference system to another.
 
def ecohydroworkflowlib.spatialdata.utils.extractTileFromRaster
 Extract a tile from a raster.
 
def ecohydroworkflowlib.spatialdata.utils.resampleRaster
 Resample raster from one spatial reference system and resolution to another.
 
def ecohydroworkflowlib.spatialdata.utils.convertGMLToShapefile
 Convert a GML file to a shapefile.
 
def ecohydroworkflowlib.spatialdata.utils.deleteShapefile
 Delete shapefile and its related files (.dbf, .prj, .shx)
 
def ecohydroworkflowlib.spatialdata.utils.getCoordinatesOfPointsFromShapefile
 Get WGS84 coordinates of point features in shapefile.
 
def ecohydroworkflowlib.spatialdata.utils.deleteGeoTiff
 Delete GeoTIFF and its related files (.aux.xml)
 
def ecohydroworkflowlib.spatialdata.utils.isCoordinatePairInBoundingBox
 Determine whether coordinate pair lies within bounding box.
 
def ecohydroworkflowlib.spatialdata.utils.calculateBoundingBoxCenter
 Calculate the central point of the bounding box.
 
def ecohydroworkflowlib.spatialdata.utils.calculateBoundingBoxAreaSqMeters
 Calculate bbox area in square meters.
 
def ecohydroworkflowlib.spatialdata.utils.tileBoundingBox
 Break up bounding box into tiles if bounding box is larger than threshold.
 
def ecohydroworkflowlib.spatialdata.utils.getBoundingBoxForShapefile
 Return the bounding box, in WGS84 (EPSG:4326) coordinates, for the ESRI shapefile.
 
def ecohydroworkflowlib.spatialdata.utils.bufferBoundingBox
 Buffer the bounding by a given percentage.
 
def ecohydroworkflowlib.spatialdata.utils.getMeterConversionFactorForLinearUnitOfGMLfile
 Get conversion factor for converting a GML file's linear unit into meters.
 
def ecohydroworkflowlib.spatialdata.utils.getMeterConversionFactorForLinearUnitOfShapefile
 Get conversion factor for converting a shapefile's linear unit into meters.
 
def ecohydroworkflowlib.spatialdata.utils.getSpatialReferenceForRaster
 Get pixel size and unit for DEM.
 
def ecohydroworkflowlib.spatialdata.utils.getDimensionsForRaster
 Get number of columns and rows for raster.
 
def ecohydroworkflowlib.spatialdata.utils.getBoundingBoxForRaster
 Return the bounding box, in WGS84 (EPSG:4326) coordinates, for the raster dateset.
 
def ecohydroworkflowlib.spatialdata.utils.writeBboxPolygonToShapefile
 Write bbox to a shapfile.
 
def ecohydroworkflowlib.spatialdata.utils.writeCoordinatePairsToPointShapefile
 Write coordinates as a point shapefile.
 
def ecohydroworkflowlib.spatialdata.utils.copyRasterToGeoTIFF
 Copy input raster from a location outside of outputDir to a GeoTIFF format raster stored in outputDir.
 

Variables

int ecohydroworkflowlib.spatialdata.utils.SHP_MINX 0
 
int ecohydroworkflowlib.spatialdata.utils.SHP_MAXX 1
 
int ecohydroworkflowlib.spatialdata.utils.SHP_MINY 2
 
int ecohydroworkflowlib.spatialdata.utils.SHP_MAXY 3
 
list ecohydroworkflowlib.spatialdata.utils.RASTER_RESAMPLE_METHOD ['near', 'bilinear', 'cubic', 'cubicspline', 'lanczos']
 
int ecohydroworkflowlib.spatialdata.utils.WGS84_EPSG 4326
 
string ecohydroworkflowlib.spatialdata.utils.WGS84_EPSG_STR "EPSG:4326"