pgirmess (version 1.6.9)

readVista: Download waypoints and tracks from a GPS

Description

Download GPS waypoints and tracks using gpsbabel

Usage

readVista(i = "garmin", f = "usb:", type="w", SPDF=NULL, invisible=TRUE)

Arguments

i

INTYPE: a supported file type, default "garmin"

f

INFILE: the appropriate device interface, default "usb:"

type

"w" waypoints, or "t" track

SPDF

if not NULL (the default), characters: the path and filename where to download data as gpx file

invisible

Under Windows, do not open an extra window

Value

If SPDF = NULL (the default) a data frame of four columns:

ident

waypoint names or track IDs

long

longitude

lat

latitude

altitude

elevation

Information about the data type (waypoints or tracks) and the date of download are stored as attributes.

If a path and filename is specified with the argument SPDF (e.g. SPDF="./mydata.gpx"), GPS data are downloaded as gpx file.

Details

The function calls gpsbabel via the system. The gpsbabel program must be present and on the user's PATH for the function to work see http://www.gpsbabel.org. The function has been tested on the following Garmin GPS devices: Etrex Summit, Etrex Vista Cx and GPSmap 60CSx. On Ubuntu Linux, USB-to-RS232 converter cables were connected succesfully with "/dev/ttyUSB0"; on Windows commonly "com4:" or similar.

References

http://www.gpsbabel.org

See Also

readGPS

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
   # a GPS device must be connected
mywaypoints<-readVista() # download waypoints
mytracks<-readVista(type="t") # download tracks
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab