Bounding boxe helper class and several raster utility functions. More...
Classes | |
class | bbox |
Functions | |
def | alignedGridStruct (file1, file2) |
Checks if two raster files can be aligned with their grids without need for resampling (with eps=0.001) Copied (more or less) from the opals C++ Code (with permission by gm) Author: lwiniwar Created: 03.03.2016 :param file1: input raster file 1 :param file2: input raster file 2 :return: True, if the grids of the files are aligned, False otherwise. More... | |
def | shell_gdal_rasterize (shape, output_file, dim_file, tile_name="") |
Rasterizes a shapefile/vector layer/vector geometry (polygons only) using the shell command "gdal_rasterize". More... | |
def | make_shape_permanent (output_file, shape, tile_name) |
def | opals_rasterize (shape, output_file, dim_file) |
def | resample_grid (grid, base, outf=None, interpolation=opals.Types.ResamplingMethod.nearestNeighbour) |
Bounding boxe helper class and several raster utility functions.
def python.tools.rasterfun.alignedGridStruct | ( | file1, | |
file2 | |||
) |
Checks if two raster files can be aligned with their grids without need for resampling (with eps=0.001) Copied (more or less) from the opals C++ Code (with permission by gm) Author: lwiniwar Created: 03.03.2016 :param file1: input raster file 1 :param file2: input raster file 2 :return: True, if the grids of the files are aligned, False otherwise.
def python.tools.rasterfun.shell_gdal_rasterize | ( | shape, | |
output_file, | |||
dim_file, | |||
tile_name = "" |
|||
) |
Rasterizes a shapefile/vector layer/vector geometry (polygons only) using the shell command "gdal_rasterize".
Needs to be in the path/working dir. :param shape: path to a shapefile / ogr Feature / ogr Geometry (polygon only) :param output_file: filename to write burned raster to :param dim_file: any tif that shows what areas to rasterize :param tile_name: string of the tile name :return: