Learn R Programming

TreeLS (version 1.0)

readTLS: Import a point cloud file into a LAS object

Description

Wrapper to read point clouds straight to LAS objects suitable for TLS applications. Reads las or laz files with readLAS and alters the header defaults. Other file formats are (or try to be) read using read.table.

Usage

readTLS(file, colNames = NULL, ...)

Arguments

file

file path.

colNames

optional - character vector. Only used for table-like files. It states the column names - if not set, only the 3 first columns will be converted to XYZ.

...

further arguments passed to either readLAS or read.table.

Value

LAS object.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file)
summary(tls)
# }

Run the code above in your browser using DataLab