def retile_images(src, outdir, tile_size=DEFAULT_TILE_SIZE): cmd = 'gdal_retile.py -co TILED=YES ' \ '-ps {tile_size} {tile_size} ' \ '-targetDir {outdir} ' \ '{src}'.format(tile_size=tile_size, outdir=outdir, src=src) run_command(cmd)
def build_virtual_raster(inputs, dst): cmd = 'gdalbuildvrt {dst} {inputs}'.format(dst=dst, inputs=' '.join(inputs)) run_command(cmd)