gis-tools-ts - v0.6.0
    Preparing search index...

    Class LASZipReader

    LASzip Reader

    Reads LAS zipped data. Supports LAS 1.4 specification although missing some support. See specification Implements the FeatureIterator interface

    Data is stored like so:

    |            PUBLIC HEADER BLOCK           |
    | VARIABLE LENGTH RECORDS |
    | POINT DATA RECORDS |
    | Extended Variable Length Records (EVLRs) |
    | Field Chunk table start position (EOF) |
    import { LASZipReader } 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 LASZipReader(new FileReader('./data.laz'));

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

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • input: ReaderInputs

        The LAZ input data from a reader/buffer

      • definitions: typeof ProjectionBase[] = []

        an array of projection definitions for the transformer if needed

      • epsgCodes: Record<string, string> = {}

        a record of EPSG codes to use for the transformer if needed

      • OptionalgridStores: GridReader[]

        an array of grid readers if needed

      • dontTransform: boolean = false

        if you set to true, the source projection is kept

      Returns LASZipReader

    Properties

    dontTransform: boolean = false

    if you set to true, the source projection is kept

    Accessors

    • get length(): number

      Get the number of points stored

      Returns number

      • the number of points

    Methods

    • Generator to iterate over each WGS84 lon-lat point

      Returns AsyncGenerator<VectorFeature<undefined, LASFormat, Properties>>

    • Reads a point in at index

      Parameters

      • index: number

        The index of the point to read

      Returns VectorPointM<LASFormat>

      • The parsed point