find_ctg_centroids: Find scan locations from a 'LAScatalog'

View source: R/clip_lidR_ctgs.R

find_ctg_centroidsR Documentation

Find scan locations from a LAScatalog

Description

This function does the same as las_find_centroids but it works on a LAScatalog and returns an sf object of point lcoations of scan centroids. Result of this function can be used as an input to stitch_TLS_dir_to_LAS and stitch_TLS_dir_to_LAS_tile to increase speed.

Usage

find_ctg_centroids(ctg, n_cores = 1, subsample = 10000)

Arguments

ctg

a lidR::LAScatalog object for which you want to find a centroids of all scan locations

n_cores

a number of cores to use for parallel processing.

subsample

drop every nth return to speed up processing time. See las_find_centroids

Examples

library(sf)
ctg = lidR::readLAScatalog('path/to/las/catalog')
scan_locations = find_ctg_centroids(ctg, n_cores=4)
plot(scan_locations$geom)

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