Skip to contents

retrieve a topographical matrix for the canvas region. Set the resolution of the cell size and the elevation source.

Usage

topo_matrix(res, src = "gebco", resample = "CubicSpline", ...)

Arguments

res

The desired cell resolution of the matrix in canvas CRS units.

src

Default is 'gebco'. The server from which to download topographic data. Use raytrix::topo_sources() to view available sources (via toppgraphy). See details.

Details

See https://github.com/hypertidy/gdalio and https://gdal.org/drivers/raster/wms.html for examples of custom sources from the web. Alternatively, you can download a file and specify the local path.