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

    Class NadGridReader

    NAD Grid Reader

    Loads/reads a binary NTv2 file (.gsb) implementing the FeatureIterator interface

    It should be noted that a proj4 Transformer usually uses this class internally. But if you want to manually parse a .gsb file, you can use this class directly.

    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 reader = new NadGridReader('BETA2007.gsb', new FileReader('./BETA2007.gsb'));

    // access all the vector features
    const data = await Array.fromAsync(reader);

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    key: string

    the key or name of the grid

    Accessors

    Methods

    • Iterate over all features in the shapefile

      Returns AsyncGenerator<VectorFeature<NadGridMetadata>>

    • Return all the features in the shapefile

      Returns VectorFeatureCollection<NadGridMetadata>

      • a collection of VectorFeatures