Skip to main content

read_las_binary

Function read_las_binary 

Source
pub fn read_las_binary(data: &[u8]) -> Result<LasPointCloud, String>
Expand description

Parse a LAS 1.4 binary point cloud from raw bytes.

Validates the "LASF" file signature, decodes the fixed 375-byte header, then reads all point records using Point Data Format 0 as the base layout (the first 20 bytes of every format are identical).

ยงErrors

Returns a descriptive String error if the data is too short, the signature is wrong, or any byte offset exceeds the data length.