View source: R/clip_lidR_ctgs.R
stitch_TLS_dir_to_LAS_tiles | R Documentation |
This function takes an input directory of TLS scans that are overlapping and a region of interest (e.g., large plot). The function loads, stitches, and clips all las data to the region of interest and outputs LAS tiles of a user specified size. Note: when binding overlapping scan sections, script will keep only data columns which are common among all scans.
stitch_TLS_dir_to_LAS_tiles(
ctg,
out_dir,
bnd,
tile_size,
n_cores,
buffer = 10,
max_scan_distance = 60,
index = TRUE,
scan_locations = NULL,
Xu_correction = FALSE
)
ctg |
a |
out_dir |
directory to output LAS tiles (no ending '/' in path). |
bnd |
an |
n_cores |
number of cores to use in parallel processing |
buffer |
width of buffer to apply to |
max_scan_distance |
maximum distance from scan to be included. Evaluated using |
index |
boolean. Also write a lax file to index the points in the files. see |
# Load LAScatalog, clip, and tile for a large area specified by an sf object
ctg = lidR::readLAScatalog('path/to/LASfiles/')
bnd = sf::st_read('plot_boundary.shp')
stitch_TLS_dir_to_LAS_tiles(ctg, 'output_tiles', bnd, tile_size = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.