Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readGPX

Import GPX (GPS track) files


Description

Reads various elements from a *.gpx file — metadata, waypoints, tracks and routes — and converts them to dataframes.

Usage

readGPX(gpx.file, metadata = TRUE, bounds = TRUE, 
              waypoints = TRUE, tracks = TRUE, routes = TRUE)

Arguments

gpx.file

location of the gpx.file

metadata

logical; species whether the metadata should be imported

bounds

logical; species whether the bounding box coordinates should be imported

waypoints

logical; species whether all waypoints should be imported

tracks

logical; species whether all tracks should be imported

routes

logical; species whether all routes should be imported

Details

Waypoint is a point of interest, or named feature on a map. Track is an ordered list of points describing a path. Route is an ordered list of waypoints representing a series of turn points leading to a destination.

Author(s)

Tomislav Hengl

References

See Also

rgdal::readOGR, kml_layer.STTDF

Examples

## Not run: # read GPX file from web:
fells_loop <- readGPX("https://www.topografix.com/fells_loop.gpx")
str(fells_loop)

## End(Not run)

plotKML

Visualization of Spatial and Spatio-Temporal Objects in Google Earth

v0.8-1
GPL
Authors
Tomislav Hengl [cre, aut], Andrea Gilardi [ctb], Pierre Roudier [ctb], Dylan Beaudette [ctb], Edzer Pebesma [ctb], Michael Blaschek [ctb]
Initial release
2021-04-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.