View source: R/get_raw_lidar.R
get_raw_lidar | R Documentation |
Check if raw LIDAR data are available at the shape location. The raw LIDAR data are not classified; they correspond to a cloud point.
get_raw_lidar(x, destfile = ".", grid_path = ".", quiet = F)
x |
Object of class |
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 |
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.
No object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.