Learn R Programming

oce (version 1.7-10)

read.gps: Read a GPS File

Description

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

Usage

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

Value

A gps object.

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".

encoding

a character value that indicates the encoding to be used for this data file, if it is textual. The default value for most functions is "latin1", which seems to be suitable for files containing text written in English and French.

debug

set to TRUE to print information about the header, etc.

processingLog

ignored.

Author

Dan Kelley

See Also

Other things related to gps data: [[,gps-method, [[<-,gps-method, as.gps(), gps-class, plot,gps-method, summary,gps-method