TreeLS (version 2.0.2)

readTLS: Import a point cloud file into a LAS object

Description

Wrapper to read point cloud files straight into LAS objects. Reads las or laz files with readLAS, ply files with read.las and other file formats with fread (txt, xyz, 3d or any other table like format).

Usage

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

Arguments

file

file path.

col_names

optional - character vector. Only used for table-like objects. It states the column names. If not set, only the 3 first columns will be used and assigned to the XYZ fields.

...

further arguments passed down to readLAS, read.las or fread.

Value

LAS object.

Examples

Run this code
# NOT RUN {
cloud = matrix(runif(300), ncol=3)
file = tempfile(fileext = '.txt')
fwrite(cloud, file)
tls = readTLS(file)
summary(tls)
# }

Run the code above in your browser using DataLab