Skip to main content

Point-cloud module

@loaders.gl/tiles-3d/copc

Read only the points the view needs. COPC packages a LAS point cloud as a range-readable LAZ file with an octree hierarchy for selective cloud access.

See Coordinate Reference Systems for the current COPC/LAS projection-record support and vertical/compound CRS roadmap.

Status: ExperimentalFrom-v4.1source loader from v5.0Scan supported

The cloud point path

Let the hierarchy choose the ranges.

COPC puts an octree directory beside the point data. A viewport or bounded query can use that directory first, then fetch only the compressed nodes that can contribute results.

one .copc.laz objectCOPC 1.0
LAS headerscale · bounds · CRS
COPC info VLRroot cube · spacing
hierarchy pagesnode → byte range
LAZ point chunksselected nodes only

bounded request

⌖bounds + level of detail
#columns + limit
↯cancel when enough arrives

application result

Arrow point batchespositions · color · attributes ↗

The same source can serve progressive viewport tiles or a bounded scan without changing the underlying point representation.

The COPC path

Metadata first. Bytes second.

The hierarchy narrows the request before point records are fetched. Applications can use a tileset source for view-driven loading or the scan contract for bounded, column-selective queries.

Discover

Header, VLRs, bounds, CRS, and hierarchy metadata

Select

Spatial nodes, levels of detail, and requested attributes

Fetch

Only the LAZ byte ranges needed for those nodes

Return

Point objects or ordered Arrow point batches

The @loaders.gl/tiles-3d/copc module loads and writes the COPC format. Its primary reader is TypeScript-only and performs native COPC hierarchy, byte-range, and LAZ point decoding.

Detailed guide

COPC module details

The sections below cover installation, source and writer APIs, compatibility, and the exact point and range behavior.

Installation​

npm install @loaders.gl/core @loaders.gl/tiles-3d

APIs​

APIDescription
COPCLoader From-v5.0Loads viewport-selected point data from COPC files through byte ranges.
COPCWriterWrites Mesh or Mesh Arrow table point clouds as COPC 1.0 data.

Attribution​

The original module was based on Connor Manning's copc.js project under the MIT license. The current primary reader is a first-party TypeScript implementation with no copc runtime dependency.