Chevron DownCommand-Line Reference
Chevron DownAPI Reference

GPXLoader

From-v3.0

The GPXLoader parses GPX files into GeoJSON. From Wikipedia:

GPX, or GPS Exchange Format, is an XML schema designed as a common GPS data format for software applications. It can be used to describe waypoints, tracks, and routes. ... Location data (and optionally elevation, time, and other information) is stored in tags and can be interchanged between GPS devices and software.

LoaderCharacteristic
File Extension.gpx
File TypeText
File FormatGPX
Data FormatGIS
Decoder TypeSynchronous
Worker Thread SupportNo
Streaming SupportNo

Usage

import {GPXLoader} from '@loaders.gl/kml';
import {load} from '@loaders.gl/core';

const data = await load(url, GPXLoader, options);

Options

OptionTypeDefaultDescription
gis.formatstring'geojson'Can be set to 'raw', 'geojson' or 'binary'.

Limitations

  • In Node.JS, applications must import @loaders.gl/polyfills for the DOMParser polyfill.