Learn R Programming

TreeLS (version 2.0.2)

writeTLS: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab