frame2gpx: Convert latlon data frame to gpx file.

Description Usage Arguments Note See Also Examples

View source: R/frame2gpx.R

Description

Writes a gpx file of a dataframe with a call to gpsbabel in the shell

Usage

1
frame2gpx(data, filename = "tmp.gpx", type = "rte")

Arguments

data

Data frame with positions in columns lat and lon.

filename

Name of gpx-file, defaults to 'tmp.gpx'.

type

Type of gpx-file, one of wpt for waypoints, rte' for route or trk for track.

Note

Requires gpsbabel installation working from the command line.

See Also

gpsbabel.org

Examples

1
2
3
4
5
6
7
8
## Not run: 
# some positions
pos <- rPeri(323)
frame2gpx(pos)
system("more tmp.gpx")
system("rm tmp.gpx")

## End(Not run)

geo documentation built on May 2, 2019, 5:22 p.m.