View source: R/clip_lidR_ctgs.R
find_las_centroid | R Documentation |
This function takes a lidR::LAS
object, and reads it in quickly by dropping
most points using subsample
. The function returns an sf::POINT
object
containing the coordinates of the centroid. Note that centroid is only
approximate and may be imprecise if subsample is large (i.e., > 1000) or
LAS point density is low.
find_las_centroid(las, subsample = 1e+05)
las |
a |
subsample |
drop every |
# Load large LAS file and identify the centroid (i.e., scan location)
library(lidR)
library(sf)
#' las = readLAS('large_las_file.las')
cent = find_las_centroid(las)
plot(cent$geom)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.