Skip to contents

Check if raw LIDAR data are available at the shape location. The raw LIDAR data are not classified; they correspond to a cloud point.

Usage

get_raw_lidar(x, destfile = ".", grid_path = ".", quiet = F)

Arguments

x

Object of class sf or sfc. Needs to be located in France.

destfile

Folder path where data are downloaded. By default set to "." e.g. the current directory

grid_path

Folder path where grid is downloaded. By default set to "." e.g. the current directory

quiet

if TRUE download is silent

Value

No object.

Details

get_raw_lidar() first download a grid containing the name of LIDAR tiles which is then intersected with x to determine which ones will be uploaded. The grid is downloaded to grid_path and lidar data to destfile. For both directory, function check if grid or data already exist to avoid re-downloading them.

Examples

if (FALSE) { # \dontrun{
library(sf)

# Create shape
x <- st_polygon(list(matrix(c(8.852234, 42.55466,
                                  8.852234, 42.57289,
                                  8.860474, 42.57289,
                                  8.860474, 42.55466,
                                  8.852234, 42.55466),
                                 ncol = 2, byrow = TRUE)))
x <- st_sfc(x, crs = st_crs(4326))

# Download data to current directory
get_raw_lidar(x)

# Check all .laz file
list.files(".", pattern = ".laz", recursive = TRUE)
} # }