dem_to_cog: Write DEM to cloud optimized GeoTiff file as specified...

View source: R/valley.R

dem_to_cogR Documentation

Write DEM to cloud optimized GeoTiff file as specified location

Description

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


bucharest_dem <- get_dem_example_data()
dem_to_cog(bucharest_dem, "bucharest_dem.tif")


rcrisp documentation built on Aug. 8, 2025, 6:42 p.m.