Skip to contents

Write DEM to cloud optimized GeoTiff file as specified location

Usage

dem_to_cog(dem, fpath, output_directory = NULL)

Arguments

dem

to write to file

fpath

filepath for output. If no output directory is specified (see below) fpath is parsed to determine the output directory

output_directory

where file should be written. If specified fpath is treated as filename only.

Value

The input DEM. This function is used for the side-effect of writing values to a file.

Examples

if (FALSE) { # interactive()
bucharest_dem <- get_dem_example_data()
dem_to_cog(bucharest_dem, "bucharest_dem.tif")
}