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

    Class NadGridStore

    NAD Grid V2 Reader

    Store Grids from a NTv2 file (.gsb)

    import { NadGridReader } 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 store = new NadGridStore();

    // store a grid
    store.addGridFromReader('BETA2007.gsb', new FileReader(`${__dirname}/fixtures/BETA2007.gsb`));

    // get a grid
    const grid = store.getGrid('BETA2007.gsb');

    // get a grid given a list of names (comma separated):
    const grids = store.getGridsFromString('BETA2007.gsb,TEST_A.gsb,TEST_B.gsb');

    Hierarchy (View Summary)

    Index

    Methods

    • Insert a new NadGrid into the store

      Parameters

      Returns void

    • Add a grid given a data input

      Parameters

      • key: string

        the key or name of the grid

      • input: ReaderInputs

        the input data to parse

      Returns void

    • Get a grid from the store given a key or name

      Parameters

      • key: string

        the key or name of the grid

      Returns undefined | NadGridReader

      • the grid
    • Get a grid definition from a string

      Parameters

      • name: string

        a single grid name to test against

      Returns undefined | NadGridDefinition

      • a grid definition
    • Get grid definitions from a string name

      Parameters

      • Optionalkeys: string

        complex string of grid keys to test against

      Returns NadGridDefinition[]

      • an array of grid definitions