Chevron Down
Table of Contents
Chevron DownAPI Reference

LASLoader

The LASLoader parses a point cloud in the LASER file format.

LoaderCharacteristic
File Extension.las, .laz
File TypeBinary
File FormatLASER file format
Data FormatPointCloud
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Usage

import {LASLoader, LASWorkerLoader} from '@loaders.gl/las';
import {load} from '@loaders.gl/core';

// Decode on main thread
const data = await load(url, LASLoader, options);
// Decode on worker thread
const data = await load(url, LASWorkerLoader, options);

Options

OptionTypeDefaultDescription
skipNumber1Read one from every n points.
onProgressFunction-Callback when a new chunk of data is read. Only works on the main thread.