Main Content

lidar.blocked.LASBlocks

Read and write each block of blocked point cloud data as LAS file

Since R2022a

Description

The LASBlocks object is an adapter that writes blocked point cloud data in LAS format.

When writing to disk, the object creates an individual LAS file for each block and writes point cloud and point attributes data of the corresponding block into a file. The object saves all LAS files in a folder.

The table lists the support that the LASBlocks object has for various blockedPointCloud capabilities.

CapabilitySupport
Data types

struct and pointCloud object

Process blocks in parallel using the apply functionYes

Creation

Description

adapter = lidar.blocked.LASBlocks creates a LASBlocks object that reads and writes blocked point cloud data as LAS files, with one LAS file for each block.

Properties

expand all

Point cloud file format, specified as "las" or "laz".

Data Types: char | string

LAS version, specified as "1.0", "1.1", "1.2", "1.3", or "1.4".

Data Types: string | char

Since R2024b

Scale of the XYZ-coordinates, specified as a three-element real-valued row vector of the form [Xscale Yscale Zscale].

Data Types: double

Since R2024b

Offset of the XYZ-coordinates, specified as a three-element real-valued row vector of the form [Xoffset Yoffset Zoffset].

Data Types: double

Since R2024b

Point data record format ID, specified as 0, 1, 2, 3, 6, 7, or 8. This table shows the supported point data record formats for different LAS or LAZ file versions.

LAS or LAZ VersionSupported Point Data Record Formats
1.0Point data record formats 0 and 1
1.1Point data record formats 0 and 1
1.2Point data record formats 0 to 3
1.3Point data record formats 0 to 3
1.4Point data record formats 0 to 3 and 6 to 8

Note

The point data record format in LAS files ranges from 011. But the LASBlocks object supports 0, 1, 2, 3, 6, 7, or 8 formats only.

For more information, see Point Data Record Format.

Data Types: double

Version History

Introduced in R2022a

expand all