Skip to content
Prev 1918 / 29559 Next

reading a gps from R

Patrick:

A simplified version of your readGPS() interfacing gpsbabel is included in
maptools 0.6-9. It turned out that even using the NMEA interface to
different Garmin receivers seems to give different data in different
columns. In addition, my trials have shown that some data frame rows may
be corrupted, so at least the first time a given receiver is interfaced,
the data read will need to be looked at carefully. From there on, one can
write a wrapper with the general readGPS() function inside to check for
erroneous rows and select required columns, as sketched in the example for
my Garmin etrex Legend Cx. Under non-Windows OS, reading from USB or
serial may need special permissions too - see the gpsbabel website, and
Vista may also require special treatment (untried).

Thanks for a useful contribution!

Roger
On Sun, 18 Feb 2007, Patrick Giraudoux wrote: