writeLAS function

Write a .las or .laz file

Write a .las or .laz file

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

writeLAS(las, file, index = FALSE)

Arguments

  • las: an object of class LAS.
  • file: character. A character string naming an output file.
  • index: boolean. Also write a lax file to index the points in the files

Returns

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

Examples

LASfile <- system.file("extdata", "Megaplot.laz", package="lidR") las = readLAS(LASfile) subset = clip_rectangle(las, 684850, 5017850, 684900, 5017900) writeLAS(subset, tempfile(fileext = ".laz"))
  • Maintainer: Jean-Romain Roussel
  • License: GPL-3
  • Last published: 2024-07-09