GRASS logo

Note: A new GRASS GIS stable version has been released: GRASS GIS 7. Go directly to the new manual page here

NAME - Import waypoints, routes, and tracks from a GPS receiver or GPS download file into a vector map.


vector, import, GPS

SYNOPSIS help [-vwrtpk] [input=string] [output=string] [format=string] [proj=string] [--overwrite] [--verbose] [--quiet]


Verbose mode
Import waypoints
Import routes
Import track
Force vertices of track or route data as points
Do not attempt projection transform from WGS84
Allow output files to overwrite existing files
Verbose module output
Quiet module output


Device or file used to import data
Default: /dev/gps
Name for output vector map (omit for display to stdout)
Format of GPS input data (use gpsbabel supported formats)
Default: garmin
Projection of input data (PROJ.4 style), if not set Lat/Lon WGS84 is assumed

DESCRIPTION allows the user to import waypoint, route, and track data from a locally connected GPS receiver or a text file containing GPS data of many common formats. Translation is done via the GPSBabel program.

This software is not intended as a primary means of navigation.

NOTES automatically reprojects data using the projection settings of the current location. The default input data projection is lat/lon WGS84. If your GPS outputs data using another projection or map datum, you may include the PROJ.4 parameters defining your projection in the proj option and will reproject your data accordingly. Great care must be taken to get these parameters correct! The automatic transform may be skipped by using the -k flag in which case the data will be imported unprojected, as it appears in the input.

Route and Track data may be uploaded as a series of points by using the -p flag, otherwise they will be imported as lines. You can run multiple times and merge the line and point vectors with the v.patch command if you want, but take care when merging dissimilar attribute tables.


GPS device connected via USB adapter

Import waypoints, tracks, routes from /dev/ttyUSB0 and save to a GRASS vector map: -w input=/dev/ttyUSB0 format=garmin output=waypoints -t input=/dev/ttyUSB0 format=garmin output=tracks -r input=/dev/ttyUSB0 format=garmin output=routes

GPS device connected via serial adapter

Import waypoint data from a Garmin GPS connected at /dev/ttyS0 and save to a GRASS vector map named waypoints: -w input=/dev/ttyS0 format=garmin output=waypoints

Import track data from a GPX

Import track data from a GPX text file and save to a GRASS vector map named tracks. -t input=gpslog.gpx format=gpx output=tracks

Import route data from GPS connected at /dev/gps

Import route data as a series of points from a Garmin GPS connected at /dev/gps and save to a GRASS vector map named routePoints: -r -p file=/dev/gps format=garmin output=routePoints


db.execute,,, v.db.connect, v.patch gpsbabel from
cs2cs from PROJ.4


Claudio Porta and Lucio Davide Spano, students of Computer Science at University of Pisa (Italy).
Commission from Faunalia Pontedera (PI)

Based on for GRASS 6.0 by Hamish Bowman
and for GRASS 5 by Andreas Lange

Last changed: $Date: 2011-11-08 01:42:51 -0800 (Tue, 08 Nov 2011) $

Main index - vector index - Full index

© 2003-2016 GRASS Development Team