Skip to contents

get_summary derives information for LAS files, such as number of points per class and histogram distribution of z or intensity values.

Usage

get_summary(path, full.names = FALSE)

Arguments

path

The path to a file (.las/.laz/.copc), to a directory which contains these files, or to a virtual point cloud (.vpc) referencing these files.

full.names

Whether to return the full file path or just the file name (default)

Value

A named list of summary information (npoints, nsingle, nwithheld, nsynthetic, npoints_per_return, npoints_per_class, z_histogram, i_histogram, crs, epsg)

Details

The function needs to read the actual point cloud data! To speed up the processing the function reads just a sample of points, which is slower than just reading the header information but much faster than reading the entire file. But the results are thus only valid for the subsample of points and do not necessarily reflect the entire file.

Examples

f <- system.file("extdata", package = "managelidar")
get_summary(f)
#> Error in loadNamespace(x): there is no package called ‘lasR’