A TypeScript library for reading and parsing Cloud Optimized Point Cloud (COPC) data, version 0.0.8. It provides utilities to initialize a COPC object from a file or getter, traverse the hierarchy pages, and read point data views with typed dimension access. The library is pre-1.0 and actively maintained on GitHub with CI. It differentiates from other point cloud libraries by focusing specifically on the COPC format, offering a simple async API, and shipping TypeScript types.
npm install copcVerified import paths — ran on the pinned version, not inferred.
Shows how to initialize a Copc object, load the root hierarchy page, and read point data using dimension getters.
Pin to a specific version and test after upgrades.
Provide a custom async getter function that returns ArrayBuffer for given byte offset and length.
Watch the GitHub repository for changelog.
npm install copc and ensure your project is set up for ESM (e.g., "type": "module" in package.json).
Replace 'const Copc = require("copc")' with 'import { Copc } from "copc"'.Import as a type: 'import type { CopcHeader } from "copc"'.No dependency data recorded yet.