Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.52 KB

las.md

File metadata and controls

43 lines (32 loc) · 1.52 KB

LAS Reader

las-file-ts las-gzip-ts las-brotli-ts

Description

Reads LAS data. Supports up to the LAS 1.4 specification. See specification for more details.

Implements the FeatureIterator interface which means you can use it in a for await loop for all the resulting Vector Features.

Usage

Be sure to checkout the Reader page for more knowledge on how to input data into the LASReader.

import { LASReader } from 'gis-tools-ts';
import { FileReader } from 'gis-tools-ts/file';
// or use the MMapReader if using Bun:
// import { MMapReader } from 'gis-tools-ts/mmap';

const reader = new LASReader(new FileReader('./data.las'));

// read the features
for (const feature of reader) {
  console.log(feature);
}

Useful links