lidR (version 2.0.3)

writeLAS: Write a .las or .laz file

Description

Write a LAS object into a binary .las or .laz file (compression specified in filename)

Usage

writeLAS(las, file)

Arguments

las

an object of class LAS.

file

character. A character string naming an output file.

Value

Nothing. This function is used for its side-effect of writing a file.

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
subset = lasclipRectangle(las, 684850, 5017850, 684900, 5017900)
writeLAS(subset, tempfile(fileext = ".laz"))
# }

Run the code above in your browser using DataCamp Workspace