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

    Class SVGReader

    SVG Reader

    Reads data from an SVG string. The assumed projection is WGS84

    Implements the FeatureIterator interface

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

    const reader = new SVGReader('svg-text');

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

    Implements

    Index

    Methods

    • Iterate over all features in the shapefile

      Returns AsyncGenerator<
          VectorFeature<Record<string, unknown>, Properties, SVGProperties>,
      >