Learn R Programming

oce (version 0.9-18)

read.gps: Scan a gps data file

Description

Read a gps file in gpx format format.

Usage

read.gps(file, type, debug=getOption("oceDebug"), processingLog)

Arguments

file
name of file containing gps data.
type
type of file, which will be inferred from examination of the data if not supplied. In the present version, the only choice for type is "gpx".
debug
set to TRUE to print information about the header, etc.
processingLog
if provided, the action item to be stored in the log. (Typically only provided for internal calls; the default that it provides is better for normal calls by a user.)

Value

  • An object of class "gps".

Details

Reads GPX format files by simply finding all longitudes and latitudes; in other words, information on separate tracks, or waypoints, etc., is lost.

References

The GPX format is described at http://www.topografix.com/GPX/1/1/.

See Also

The documentation for gps-class explains the structure of gps objects, and also outlines the other functions dealing with them.

Examples

Run this code
library(oce)
gps <- read.gps("~/Dropbox/dalwhoi.gpx")

Run the code above in your browser using DataLab