powered by
Write a LAS object into a binary .las or .laz file (compression specified in filename)
writeLAS(las, file, index = FALSE)
Nothing. This function is used for its side-effect of writing a file.
an object of class LAS.
character. A character string naming an output file.
boolean. Also write a lax file to index the points in the files
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR") las = readLAS(LASfile) subset = clip_rectangle(las, 684850, 5017850, 684900, 5017900) writeLAS(subset, tempfile(fileext = ".laz"))
Run the code above in your browser using DataLab