[GRASS-user] v.in.gpsbabel, Garmin USB and Macintosh
Hamish
hamish_nospam at yahoo.com
Wed Sep 27 06:48:06 EDT 2006
Dave Kent wrote:
> I had thought (and hoped) from the documentation that track data would
> import as an arc.
Yes, tracks and routes should import as an arc.
You need to add a flag to gpsbabel to get a track, not points, did you use
the gpsbabel "-t" flag?
from the script:
# How to do it
#
# gpsbabel [options] -i INTYPE -f INFILE -o OUTTYPE -F OUTFILE
# gpsbabel [options] -i INTYPE -o OUTTYPE INFILE [OUTFILE]
#
#(GPX file example):
# gpsbabel -w -i gpx -o xcsv,style=grass_write_ascii.style outfile.csv
...
if [ $CREATE_POINTS -eq 1 ] ; then
echo "Downloading Waypoints from GPS" 1>&2
gpsbabel -w -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o xcsv,style="$STYLE" -F "$TMP".gpst
EXITCODE=$?
else
if [ $RTE -eq 1 ] ; then
echo "Downloading Routes from GPS" 1>&2
gpsbabel -r -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx,style="$STYLE" -F "$TMP".gpx
EXITCODE=$?
fi
if [ $TRK -eq 1 ] ; then
echo "Downloading Tracks from GPS" 1>&2
gpsbabel -t -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx,style="$STYLE" -F "$TMP".gpx
EXITCODE=$?
fi
fi
Hamish
More information about the grass-user
mailing list