writeTLS: Export _TreeLS_ point clouds to las/laz files

View source: R/methods.R

writeTLSR Documentation

Export TreeLS point clouds to las/laz files

Description

Wrapper to writeLAS. This function automatically adds new data columns as extra bytes to the written las/laz file using add_lasattribute internally.

Usage

writeTLS(las, file, col_names = NULL, index = FALSE)

Arguments

las

LAS object.

file

file path.

col_names

column names from las that you wish to export. If left empty, all columns not listed among the standard LAS attributes are added to the file.

index

logical - write lax file also.

Examples

file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file) %>% fastPointMetrics#'
tls_file = tempfile(fileext = '.laz')
writeTLS(tls, tls_file)

up_tls = readTLS(tls_file)
summary(up_tls)

tiagodc/TreeLS documentation built on June 29, 2023, 7:40 p.m.