Chevron Down
Table of Contents
Chevron DownAPI Reference

PCDLoader

The PCDLoader loads point cloud in the Point Cloud Data (PCD) format.

LoaderCharacteristic
File Extension.pcd
File TypeText/Binary
File FormatPoint Cloud Data
Data FormatPointCloud
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Note: Currently only ascii and binary subformats are supported. Compressed binary files are currently not supported.

Usage

import {PCDLoader, PCDWorkerLoader} from '@loaders.gl/pcd';
import {load} from '@loaders.gl/core';

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

Options

OptionTypeDefaultDescription