stitch_TLS_dir_to_LAS_tiles: Combine overlapping TLS scans into tiled LAS scene

View source: R/clip_lidR_ctgs.R

stitch_TLS_dir_to_LAS_tilesR Documentation

Combine overlapping TLS scans into tiled LAS scene

Description

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.

Usage

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
)

Arguments

ctg

a LAScatalog object containing overlapping TLS scans

out_dir

directory to output LAS tiles (no ending '/' in path).

bnd

an sf object denoting the region of interest. Only UTM units tested

n_cores

number of cores to use in parallel processing

buffer

width of buffer to apply to bnd using sf::st_buffer This allows inclusion of TLS data outside study area to address edge effects.

max_scan_distance

maximum distance from scan to be included. Evaluated using find_las_centroid()

index

boolean. Also write a lax file to index the points in the files. see lidR::writeLAS

Examples

# 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)

jbcannon/landecoutils documentation built on July 16, 2025, 10:17 p.m.