writeTLS: Export _TreeLS_ point clouds to las/laz files

Description Usage Arguments Examples

View source: R/methods.R

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

1
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

1
2
3
4
5
6
7
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)

TreeLS documentation built on Aug. 26, 2020, 5:14 p.m.