View source: R/clip_lidR_ctgs.R
stitch_TLS_dir_to_LAS | R Documentation |
This function takes an input directory of TLS scans that are overlapping and a region of interest. The function loads, stitches, and clips all las data to the region of interest and outputs into a single file. Note that this should only be used on relatively small areas to avoid very large file sizes and memory errors. Plot sizes < 0.2 ha are recommended including buffer unless points are sparse. Note: script will keep only data columns which are common among all scans.
stitch_TLS_dir_to_LAS(
ctg,
out_las,
roi,
buffer = 10,
max_scan_distance = 60,
index = TRUE,
scan_locations = NULL
)
ctg |
a |
out_las |
path for output *.las file |
roi |
an |
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 |
scan_locations |
(optional) an |
# Load LAScatalog and clip to a region of interest specified by an sf object
ctg = lidR::readLAScatalog('path/to/LASfiles/')
roi = sf::st_read('plot_boundary.shp')
stitch_TLS_dir_to_LAS(ctg, 'output_path.las', roi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.