lasFileWriter
Description
A lasFileWriter object stores metadata for a LAS or LAZ file as
read-only properties. The writePointCloud object function uses these
properties to write point cloud data as a LAS or LAZ file. The lasFileWriter
object supports up to the LAS 1.4 specification.
lasFileWriter supports writing only unorganized
pointCloud objects. The created LAS file contains a public header, which
contains LAS file metadata, followed by the lidar point records.
The LAS file format is an industry-standard binary format for storing lidar data, developed and maintained by the American Society for Photogrammetry and Remote Sensing (ASPRS). The LAZ file format is a compressed version of the LAS file format. The compressed LAZ files can be optimized for display, using the default settings of this function. The LAS format cannot be optimized.
Creation
Description
creates a lasWriter = lasFileWriter(fileName)lasFileWriter object with default properties to write lidar
point cloud data into a LAS or LAZ file with the specified name
fileName. The fileName input sets the
FileName property.
specifies the properties of the lasWriter = lasFileWriter(fileName,Name=Value)lasFileWriter object by using one or
more name-value arguments.
Properties
Object Functions
writePointCloud | Write point cloud data to LAS or LAZ file |
addVLR | Add VLR data to lasFileWriter object |
Examples
Algorithms
The point cloud coordinate values are calculated as:
where, Xscale, Yscale, and Zscale
are set by the XYZScale property, and Xoffset,
Yoffset, and Zoffset are set by the
XYZOffset property. X, Y, and
Z are the raw coordinate values of the point cloud data. You must specify
the [X
Y
Z] values for each point in a pointCloud object when
writing them to a LAS or LAZ file using the writePointCloud
function.