get_raw_lidar: Download raw LIDAR data

View source: R/get_raw_lidar.R

get_raw_lidarR Documentation

Download raw LIDAR data

Description

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

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.

Value

No object.

Examples

## Not run: 
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)

## End(Not run)


happign documentation built on Sept. 11, 2024, 7:17 p.m.