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

    Class SequenceJSONReader<M, D, P>

    Text Sequence JSON Reader

    Parse GeoJSON from a file that is in the geojson-text-sequences format. Implements the FeatureIterator interface.

    import { SequenceJSONReader } from 'gis-tools-ts';
    import { FileReader } from 'gis-tools-ts/file';

    const reader = new SequenceJSONReader(new FileReader('./data.geojsonseq'));

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

    Type Parameters

    • M = Record<string, unknown>
    • D extends MValue = MValue
    • P extends Properties = Properties

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Generator to iterate over each (Geo|S2)JSON object in the file

      Returns AsyncGenerator<VectorFeatures<M, D, P>>