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.
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);
}
- https://www.asprs.org/wp-content/uploads/2010/12/LAS_1_4_r13.pdf
- https://www.usgs.gov/ngp-standards-and-specifications/lidar-base-specification-online
- https://liblas.org/development/index.html
- https://downloads.rapidlasso.de/doc/LAZ_Specification_1.4_R1.pdf
- https://github.com/PDAL/PDAL
- https://github.com/libLAS/libLAS (deprecated for PDAL)
- https://github.com/LASzip