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

    Class GPXReader

    GPX Reader

    The GPX Reader is an XML-based GPS Exchange Format (GPX) reader.

    GPX (the GPS Exchange Format) is a light-weight XML data format for the interchange of GPS data (waypoints, routes, and tracks) between applications and Web services on the Internet.

    Implements the FeatureIterator interface

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

    const fileReader = new FileReader('./example.gpx');
    const gpxReader = new GPXReader(fileReader);

    for await (const feature of gpxReader) {
    console.log(feature);
    }

    https://www.topografix.com/gpx.asp

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • input: string

        The data as either a buffer or file reader

      Returns GPXReader

    Methods

    • Generator to iterate over each WGS84 lon-lat point

      Returns AsyncGenerator<GPXVectorFeatures>