Skip to contents

Downloads elevation datasets (DEM, DSM) from the IGN WMS, computes derived products (CHM, slope, aspect), and writes all resulting rasters into the Sequoia project directory.

Usage

seq_elevation(
  dirname = ".",
  buffer = 200,
  res = 1,
  crs = 2154,
  overwrite = FALSE,
  verbose = TRUE
)

Arguments

dirname

character Directory where the matrice file is located. Defaults to the current working directory.

buffer

numeric; Buffer around x (in meters) used to enlarge the download area.

res

numeric; resolution specified in the units of the coordinate system (see happign::get_wms_raster())

crs

numeric or character; CRS of the returned raster (see happign::get_wms_raster())

overwrite

logical If TRUE, file is overwritten.

verbose

logical; If TRUE, display messages.

Value

A named list of file paths written by seq_write(), one per type.

Details

This function is a high-level convenience wrapper around:

It automatically reads the project's parca layer, downloads the necessary elevation data for its extent (with an optional buffer), computes all derived products, and saves them using seq_write().