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

    Class WKTGeometryReader<M, D, P>

    WKT Geometry Reader

    Parse a collection of WKT geometries from a string implements the FeatureIterator interface

    import { WKTGeometryReader } from 'gis-tools-ts';

    const reader = new WKTGeometryReader('POINT(4 6) GEOMETRYCOLLECTION(POINT(1 2), LINESTRING(3 4,5 6))');

    // 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

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Type Parameters

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

      Parameters

      • data: string

        the WKT geometry string to parase

      Returns WKTGeometryReader<M, D, P>

    Methods

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

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