Top Banner
GPSBabel Documentation
190
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • GPSBabel Documentation

  • GPSBabel Documentation

  • iii

    Table of ContentsIntroduction to GPSBabel .................................................................................................. xix

    The Problem: Too many incompatible GPS file formats .................................................. xixThe Solution ........................................................................................................... xix

    1. Getting or Building GPSBabel .......................................................................................... 1Downloading - the easy way. ....................................................................................... 1Building from source. .................................................................................................. 1

    2. Usage ........................................................................................................................... 3Invocation ................................................................................................................. 3Suboptions ................................................................................................................ 4Advanced Usage ........................................................................................................ 4Route and Track Modes .............................................................................................. 5Working with predefined options .................................................................................. 6Realtime tracking ....................................................................................................... 7Batch mode (command files) ........................................................................................ 7List of Options ........................................................................................................... 8

    3. The Formats ................................................................................................................. 10? Character Separated Values (xcsv) ............................................................................ 10

    style option .................................................................................................. 10snlen option .................................................................................................. 10snwhite option .............................................................................................. 10snupper option .............................................................................................. 10snunique option ............................................................................................ 11urlbase option .............................................................................................. 11prefer_shortnames option .......................................................................... 11datum option .................................................................................................. 11

    Alan Map500 tracklogs (.trl) (alantrl) ........................................................................... 11Alan Map500 waypoints and routes (.wpr) (alanwpr) ....................................................... 12All database fields on one tab-separated line (tabsep) ...................................................... 12Brauniger IQ Series Barograph Download (baroiq) ......................................................... 12Bushnell GPS Trail file (bushnell_trl) ........................................................................... 13Bushnell GPS Waypoint file (bushnell) ......................................................................... 13Cambridge/Winpilot glider software (cambridge) ............................................................ 14CarteSurTable data file (cst) ....................................................................................... 14Cetus for Palm/OS (cetus) .......................................................................................... 14

    dbname option ................................................................................................ 14appendicon option ........................................................................................ 14

    CoastalExplorer XML (coastexp) ................................................................................. 15Columbus/Visiontac V900 files (.csv) (v900) ................................................................. 15Comma separated values (csv) .................................................................................... 15CompeGPS data files (.wpt/.trk/.rte) (compegps) ............................................................ 16

    deficon option .............................................................................................. 16index option .................................................................................................. 16radius option ................................................................................................ 17snlen option .................................................................................................. 17

    CoPilot Flight Planner for Palm/OS (copilot) ................................................................. 17cotoGPS for Palm/OS (coto) ....................................................................................... 17

    zerocat option .............................................................................................. 18Custom "Everything" Style (custom) ............................................................................ 18Data Logger iBlue747 csv (iblue747) ........................................................................... 18Dell Axim Navigation System (.gpb) file format (axim_gpb) ............................................ 18DeLorme .an1 (drawing) file (an1) ............................................................................... 19

  • GPSBabel Documentation

    iv

    type option .................................................................................................... 19road option .................................................................................................... 19nogc option .................................................................................................... 20nourl option .................................................................................................. 20deficon option .............................................................................................. 20color option .................................................................................................. 21zoom option .................................................................................................... 21wpt_type option ............................................................................................ 21radius option ................................................................................................ 21

    DeLorme GPL (gpl) .................................................................................................. 21DeLorme PN-20/PN-30/PN-40 USB protocol (delbin) ..................................................... 21

    get_posn option ............................................................................................ 22logs option .................................................................................................... 22long_notes option ........................................................................................ 22nukewpt option .............................................................................................. 23nuketrk option .............................................................................................. 23nukerte option .............................................................................................. 23hint_at_end option ...................................................................................... 23gcsym option .................................................................................................. 23

    DeLorme Street Atlas Plus (saplus) .............................................................................. 23DeLorme Street Atlas Route (saroute) .......................................................................... 24

    turns_important option .............................................................................. 24turns_only option ........................................................................................ 24split option .................................................................................................. 24controls option ............................................................................................ 24times option .................................................................................................. 25

    DeLorme XMap HH Native .WPT (xmap) .................................................................... 25DeLorme XMap/SAHH 2006 Native .TXT (xmap2006) ................................................... 25DeLorme XMat HH Street Atlas USA .WPT (PPC) (xmapwpt) ......................................... 25Destinator Itineraries (.dat) (destinator_itn) .................................................................... 27Destinator Points of Interest (.dat) (destinator_poi) .......................................................... 27Destinator TrackLogs (.dat) (destinator_trl) ................................................................... 27EasyGPS binary format (easygps) ................................................................................ 28Embedded Exif-GPS data (.jpg) (exif) .......................................................................... 28

    filename option ............................................................................................ 28frame option .................................................................................................. 28name option .................................................................................................... 29overwrite option .......................................................................................... 29

    Enigma binary waypoint file (.ert) (enigma) .................................................................. 29FAI/IGC Flight Recorder Data Format (igc) .................................................................. 29

    IGC Data Format Notes ..................................................................................... 30Converting to IGC format .................................................................................. 30Converting from IGC format .............................................................................. 31Merging into IGC format ................................................................................... 31timeadj option .............................................................................................. 32

    Franson GPSGate Simulation (gpssim) ......................................................................... 32wayptspd option ............................................................................................ 32split option .................................................................................................. 32

    Fugawi (fugawi) ....................................................................................................... 33G7ToWin data files (.g7t) (g7towin) ............................................................................ 33Garmin 301 Custom position and heartrate (garmin301) ................................................... 34Garmin Logbook XML (glogbook) .............................................................................. 34Garmin MapSource - gdb (gdb) ................................................................................... 34

    cat option ...................................................................................................... 34

  • GPSBabel Documentation

    v

    bitscategory option .................................................................................... 34ver option ...................................................................................................... 35via option ...................................................................................................... 35roadbook option ............................................................................................ 35

    Garmin MapSource - mps (mapsource) ......................................................................... 35snlen option .................................................................................................. 36snwhite option .............................................................................................. 36mpsverout option .......................................................................................... 36mpsmergeout option ...................................................................................... 36mpsusedepth option ...................................................................................... 36mpsuseprox option ........................................................................................ 37

    Garmin MapSource - txt (tab delimited) (garmin_txt) ...................................................... 37date option .................................................................................................... 37datum option .................................................................................................. 37dist option .................................................................................................... 38grid option .................................................................................................... 38prec option .................................................................................................... 38temp option .................................................................................................... 38time option .................................................................................................... 38utc option ...................................................................................................... 39

    Garmin PCX5 (pcx) .................................................................................................. 39deficon option .............................................................................................. 39cartoexploreur option ................................................................................ 39

    Garmin POI database (garmin_poi) .............................................................................. 39Garmin Points of Interest (.gpi) (garmin_gpi) ................................................................. 40

    alerts option ................................................................................................ 40bitmap option ................................................................................................ 41category option ............................................................................................ 41hide option .................................................................................................... 41descr option .................................................................................................. 41notes option .................................................................................................. 41position option ............................................................................................ 42proximity option .......................................................................................... 42sleep option .................................................................................................. 42speed option .................................................................................................. 43unique option ................................................................................................ 43units option .................................................................................................. 44

    Garmin serial/USB protocol (garmin) ........................................................................... 44snlen option .................................................................................................. 46snwhite option .............................................................................................. 47deficon option .............................................................................................. 47get_posn option ............................................................................................ 47power_off option .......................................................................................... 47erase_t option .............................................................................................. 47resettime option .......................................................................................... 48category option ............................................................................................ 48bitscategory option .................................................................................... 48

    Garmin Training Center (gtrnctr) ................................................................................. 48course option ................................................................................................ 49sport option .................................................................................................. 49

    Garmin Training Center (.tcx) (gtrnctr) ......................................................................... 49course option ................................................................................................ 49sport option .................................................................................................. 49

    Geocaching.com .loc (geo) .......................................................................................... 49

  • GPSBabel Documentation

    vi

    deficon option .............................................................................................. 50nuke_placer option ...................................................................................... 50

    GeocachingDB for Palm/OS (gcdb) .............................................................................. 50Geogrid-Viewer ascii overlay file (.ovl) (ggv_ovl) .......................................................... 50Geogrid-Viewer tracklogs (.log) (ggv_log) .................................................................... 51GEOnet Names Server (GNS) (geonet) ......................................................................... 51GeoNiche .pdb (geoniche) .......................................................................................... 51

    dbname option ................................................................................................ 52category option ............................................................................................ 52

    GlobalSat DG-100/BT-335 Download (dg-100) .............................................................. 52erase option .................................................................................................. 53erase_only option ........................................................................................ 53

    Google Earth (Keyhole) Markup Language (kml) ........................................................... 53deficon option .............................................................................................. 54lines option .................................................................................................. 54points option ................................................................................................ 54line_width option ........................................................................................ 54line_color option ........................................................................................ 54floating option ............................................................................................ 54extrude option .............................................................................................. 54track option .................................................................................................. 54trackdata option .......................................................................................... 55trackdirection option ................................................................................ 55units option .................................................................................................. 55labels option ................................................................................................ 55max_position_points option ...................................................................... 55

    Google Maps XML (google) ....................................................................................... 55Google Navigator Tracklines (.trl) (gnav_trl) ................................................................. 56GoPal GPS track log (.trk) (gopal) ............................................................................... 56

    date option .................................................................................................... 57maxspeed option ............................................................................................ 57minspeed option ............................................................................................ 57clean option .................................................................................................. 58

    GpilotS (gpilots) ....................................................................................................... 58dbname option ................................................................................................ 58

    GPS TrackMaker (gtm) .............................................................................................. 58GPSBabel arc filter file (arc) ...................................................................................... 58GpsDrive Format (gpsdrive) ....................................................................................... 59GpsDrive Format for Tracks (gpsdrivetrack) .................................................................. 59GPSman (gpsman) .................................................................................................... 59GPSPilot Tracker for Palm/OS (gpspilot) ...................................................................... 59

    dbname option ................................................................................................ 60gpsutil (gpsutil) ........................................................................................................ 60GPX XML (gpx) ...................................................................................................... 60

    snlen option .................................................................................................. 60suppresswhite option .................................................................................. 61logpoint option ............................................................................................ 61urlbase option .............................................................................................. 61gpxver option ................................................................................................ 61humminbirdextensions option .................................................................... 61garminextensions option ............................................................................ 61

    HikeTech (hiketech) .................................................................................................. 61Holux (gm-100) .wpo Format (holux) ........................................................................... 62Holux M-241 (MTK based) Binary File Format (m241-bin) .............................................. 62

  • GPSBabel Documentation

    vii

    csv option ...................................................................................................... 63Holux M-241 (MTK based) download (m241) ............................................................... 63

    erase option .................................................................................................. 63erase_only option ........................................................................................ 63log_enable option ........................................................................................ 63csv option ...................................................................................................... 63

    Honda/Acura Navigation System VP Log File Format (vpl) .............................................. 64HSA Endeavour Navigator export File (hsandv) ............................................................. 64HTML Output (html) ................................................................................................. 64

    stylesheet option ........................................................................................ 65encrypt option .............................................................................................. 65logs option .................................................................................................... 65degformat option .......................................................................................... 65altunits option ............................................................................................ 65

    Humminbird tracks (.ht) (humminbird_ht) ..................................................................... 65Humminbird waypoints and routes (.hwr) (humminbird) .................................................. 66IGN Rando track files (ignrando) ................................................................................ 66

    index option .................................................................................................. 67iGO2008 points of interest (.upoi) (igo2008_poi) ............................................................ 67IGO8 .trk (igo8) ........................................................................................................ 67

    tracknum option ............................................................................................ 67title option .................................................................................................. 67description option ...................................................................................... 68

    Jelbert GeoTagger data file (jtr) .................................................................................. 68Jogmap.de XML format (jogmap) ................................................................................ 68Kartex 5 Track File (ktf2) .......................................................................................... 68Kartex 5 Waypoint File (kwf2) ................................................................................... 68Kompass (DAV) Track (.tk) (kompass_tk) .................................................................... 69Kompass (DAV) Waypoints (.wp) (kompass_wp) ........................................................... 69KuDaTa PsiTrex text (psitrex) .................................................................................... 69Lowrance USR (lowranceusr) ..................................................................................... 69

    ignoreicons option ...................................................................................... 70writeasicons option .................................................................................... 70merge option .................................................................................................. 70break option .................................................................................................. 70wversion option ............................................................................................ 70

    Magellan Explorist Geocaching (maggeo) ..................................................................... 71Magellan Mapsend (mapsend) ..................................................................................... 71

    trkver option ................................................................................................ 71Magellan NAV Companion for Palm/OS (magnav) ......................................................... 71Magellan SD files (as for eXplorist) (magellanx) ............................................................ 72

    deficon option .............................................................................................. 72maxcmts option .............................................................................................. 73

    Magellan SD files (as for Meridian) (magellan) .............................................................. 73deficon option .............................................................................................. 73maxcmts option .............................................................................................. 73

    Magellan serial protocol (magellan) ............................................................................. 74deficon option .............................................................................................. 75maxcmts option .............................................................................................. 75baud option .................................................................................................... 75noack option .................................................................................................. 75nukewpt option .............................................................................................. 76

    MagicMaps IK3D project file (.ikt) (ik3d) ..................................................................... 76Map&Guide 'TourExchangeFormat' XML (tef) ........................................................ 76

  • GPSBabel Documentation

    viii

    routevia option ............................................................................................ 77Map&Guide to Palm/OS exported files (.pdb) (mag_pdb) .......................................... 77MapAsia track file (.tr7) (mapasia_tr7) ......................................................................... 77Mapopolis.com Mapconverter CSV (mapconverter) ......................................................... 77

    Notes .............................................................................................................. 78MapTech Exchange Format (mxf) ................................................................................ 78Memory-Map Navigator overlay files (.mmo) (mmo) ...................................................... 78

    locked option ................................................................................................ 79visible option .............................................................................................. 79ver option ...................................................................................................... 79

    Microsoft AutoRoute 2002 (pin/route reader) (msroute) ................................................... 79Microsoft Streets and Trips (pin/route reader) (msroute) ................................................... 80Microsoft Streets and Trips 2002-2007 (s_and_t) ............................................................ 80Mobile Garmin XT Track files (garmin_xt) ................................................................... 81

    ftype option .................................................................................................. 81trk_header option ........................................................................................ 81

    Motorrad Routenplaner (Map&Guide) .bcr files (bcr) ................................................ 81index option .................................................................................................. 81name option .................................................................................................... 82radius option ................................................................................................ 82prefer_shortnames option .......................................................................... 82

    MS PocketStreets 2002 Pushpin (psp) .......................................................................... 82Frequently Asked Questions ............................................................................... 82

    MTK Logger (iBlue 747,...) Binary File Format (mtk-bin) ................................................ 84csv option ...................................................................................................... 84

    MTK Logger (iBlue 747,Qstarz BT-1000,...) download (mtk) ........................................... 85erase option .................................................................................................. 86erase_only option ........................................................................................ 86log_enable option ........................................................................................ 86csv option ...................................................................................................... 86

    National Geographic Topo .tpg (waypoints) (tpg) ............................................................ 86datum option .................................................................................................. 87

    National Geographic Topo 2.x .tpo (tpo2) ..................................................................... 87National Geographic Topo 3.x/4.x .tpo (tpo3) ................................................................ 87Navicache.com XML (navicache) ................................................................................ 87

    noretired option .......................................................................................... 87Navigon Mobile Navigator .rte files (nmn4) ................................................................... 88

    index option .................................................................................................. 88Navigon Waypoints (navigonwpt) ................................................................................ 88NaviGPS GT-11/BGT-11 Download (navilink) .............................................................. 88

    nuketrk option .............................................................................................. 89nukerte option .............................................................................................. 89nukewpt option .............................................................................................. 89nukedlg option .............................................................................................. 89datalog option .............................................................................................. 90power_off option .......................................................................................... 90

    NaviGPS GT-31/BGT-31 datalogger (.sbp) (sbp) ............................................................ 90NaviGPS GT-31/BGT-31 SiRF binary logfile (.sbn) (sbn) ................................................ 90Naviguide binary route file (.twl) (naviguide) ................................................................ 90

    output option ................................................................................................ 91reorder option .............................................................................................. 91

    Navitel binary track (.bin) (navitel_trk) ......................................................................... 91Navitrak DNA marker format (dna) ............................................................................. 91NetStumbler Summary File (text) (netstumbler) .............................................................. 91

  • GPSBabel Documentation

    ix

    nseicon option .............................................................................................. 92nsneicon option ............................................................................................ 92seicon option ................................................................................................ 92sneicon option .............................................................................................. 92snmac option .................................................................................................. 92

    NIMA/GNIS Geographic Names File (nima) ................................................................. 92NMEA 0183 sentences (nmea) .................................................................................... 93

    snlen option .................................................................................................. 93gprmc option .................................................................................................. 93gpgga option .................................................................................................. 94gpvtg option .................................................................................................. 94gpgsa option .................................................................................................. 94date option .................................................................................................... 94get_posn option ............................................................................................ 94pause option .................................................................................................. 94append_positioning option ........................................................................ 95baud option .................................................................................................... 95gisteq option ................................................................................................ 95

    Nokia Landmark Exchange (lmx) ................................................................................ 95binary option ................................................................................................ 96

    OpenStreetMap data files (osm) .................................................................................. 96tag option ...................................................................................................... 96tagnd option .................................................................................................. 97created_by option ........................................................................................ 97

    OziExplorer (ozi) ...................................................................................................... 97pack option .................................................................................................... 97snlen option .................................................................................................. 98snwhite option .............................................................................................. 98snupper option .............................................................................................. 98snunique option ............................................................................................ 98wptfgcolor option ........................................................................................ 98wptbgcolor option ........................................................................................ 98proximity option .......................................................................................... 98altunit option .............................................................................................. 98proxunit option ............................................................................................ 99

    PalmDoc Output (palmdoc) ........................................................................................ 99nosep option .................................................................................................. 99dbname option ................................................................................................ 99encrypt option .............................................................................................. 99logs option .................................................................................................... 99bookmarks_short option .............................................................................. 99

    PathAway Database for Palm/OS (pathaway) ............................................................... 100date option .................................................................................................. 100dbname option .............................................................................................. 100dbicon option .............................................................................................. 100deficon option ............................................................................................ 100snlen option ................................................................................................ 100

    PocketFMS breadcrumbs (pocketfms_bc) .................................................................... 101PocketFMS flightplan (.xml) (pocketfms_fp) ................................................................ 101PocketFMS waypoints (.txt) (pocketfms_wp) ............................................................... 101Quovadis (quovadis) ................................................................................................ 101

    dbname option .............................................................................................. 102Raymarine Waypoint File (.rwf) (raymarine) ................................................................ 102

    location option ........................................................................................... 102

  • GPSBabel Documentation

    x

    Ricoh GPS Log File (ricoh) ...................................................................................... 102See You flight analysis data (cup) .............................................................................. 103Skymap / KMD150 ascii files (skyforce) ..................................................................... 103SkyTraq Venus based loggers (download) (skytraq) ....................................................... 103

    erase option ................................................................................................ 104targetlocation option ............................................................................... 105baud option .................................................................................................. 105initbaud option ........................................................................................... 105read-at-once option ................................................................................... 105first-sector option ................................................................................... 106last-sector option ..................................................................................... 106dump-file option ......................................................................................... 106no-output option ......................................................................................... 106

    SkyTraq Venus based loggers Binary File Format (skytraq-bin) ....................................... 106first-sector option ................................................................................... 107last-sector option ..................................................................................... 107

    Sportsim track files (part of zipped .ssz files) (sportsim) ................................................. 107SubRip subtitles for video mapping (.srt) (subrip) ......................................................... 107

    video_time option ....................................................................................... 108gps_time option ........................................................................................... 108gps_date option ........................................................................................... 108

    Suunto Trek Manager (STM) .sdf files (stmsdf) ............................................................ 108index option ................................................................................................ 109

    Suunto Trek Manager (STM) WaypointPlus files (stmwpp) ............................................. 109index option ................................................................................................ 109

    Swiss Map 25/50/100 (.xol) (xol) ............................................................................... 110Tab delimited fields useful for OpenOffice, Ploticus etc. (openoffice) ............................... 110Teletype [ Get Jonathon Johnson to describe (teletype) ................................................... 110Textual Output (text) ............................................................................................... 110

    nosep option ................................................................................................ 111encrypt option ............................................................................................ 111logs option .................................................................................................. 111degformat option ......................................................................................... 111altunits option ........................................................................................... 111splitoutput option ..................................................................................... 111

    TomTom Itineraries (.itn) (tomtom_itn) ....................................................................... 112TomTom Places Itineraries (.itn) (tomtom_itn_places) .................................................... 112TomTom POI file (.asc) (tomtom_asc) ........................................................................ 112TomTom POI file (.ov2) (tomtom) ............................................................................. 112TopoMapPro Places File (tmpro) ............................................................................... 112TrackLogs digital mapping (.trl) (dmtlog) .................................................................... 113

    index option ................................................................................................ 113U.S. Census Bureau Tiger Mapping Service (tiger) ........................................................ 113

    nolabels option ........................................................................................... 113genurl option .............................................................................................. 114margin option .............................................................................................. 114snlen option ................................................................................................ 114oldthresh option ......................................................................................... 114oldmarker option ......................................................................................... 114newmarker option ......................................................................................... 115suppresswhite option ................................................................................. 115unfoundmarker option ................................................................................. 115xpixels option ............................................................................................ 115ypixels option ............................................................................................ 115

  • GPSBabel Documentation

    xi

    iconismarker option ................................................................................... 115Universal csv with field structure in first line (unicsv) .................................................... 115

    datum option ................................................................................................ 118grid option .................................................................................................. 118utc option .................................................................................................... 118format option .............................................................................................. 118filename option ........................................................................................... 119

    Vcard Output (for iPod) (vcard) ................................................................................. 119encrypt option ............................................................................................ 119

    VidaOne GPS for Pocket PC (.gpb) (vidaone) .............................................................. 119ver option .................................................................................................... 120

    Vito Navigator II tracks (vitosmt) .............................................................................. 120Vito SmartMap tracks (.vtt) (vitovtt) ........................................................................... 120WiFiFoFum 2.0 for PocketPC XML (wfff) .................................................................. 121

    aicicon option ............................................................................................ 121aioicon option ............................................................................................ 121ahcicon option ............................................................................................ 121ahoicon option ............................................................................................ 122snmac option ................................................................................................ 122

    Wintec TES file (wintec_tes) .................................................................................... 122Wintec WBT-100/200 Binary File Format (wbt-bin) ...................................................... 122Wintec WBT-100/200 GPS Download (wbt) ................................................................ 123

    erase option ................................................................................................ 123Wintec WBT-201/G-Rays 2 Binary File Format (wbt-tk1) .............................................. 123XAiOX iTrackU Logger (itracku) .............................................................................. 124

    backup option .............................................................................................. 124new option .................................................................................................... 124

    XAiOX iTrackU Logger Binary File Format (itracku-bin) ............................................... 125backup option .............................................................................................. 125new option .................................................................................................... 125

    Yahoo Geocode API data (yahoo) .............................................................................. 125addrsep option ............................................................................................ 126

    4. Data Filters ................................................................................................................ 127Include Only Points Inside Polygon (polygon) .............................................................. 127

    file option ...................................................................................................... 128exclude option ................................................................................................ 128

    Include Only Points Within Distance of Arc (arc) ......................................................... 128file option ...................................................................................................... 129distance option ................................................................................................ 129exclude option ................................................................................................ 129points option .................................................................................................. 130

    Include Only Points Within Radius (radius) ................................................................. 130lat option ....................................................................................................... 130lon option ...................................................................................................... 130distance option ................................................................................................ 130exclude option ................................................................................................ 131nosort option .................................................................................................. 131maxcount option ............................................................................................. 131asroute option ................................................................................................. 131

    Interpolate between trackpoints (interpolate) ................................................................ 131time option .................................................................................................... 132distance option ................................................................................................ 132route option .................................................................................................... 132

    Manipulate altitudes (height) ..................................................................................... 133

  • GPSBabel Documentation

    xii

    add option ...................................................................................................... 133wgs84tomsl option .......................................................................................... 133

    Manipulate track lists (track) ..................................................................................... 133move option ................................................................................................... 133pack option .................................................................................................... 134split option ..................................................................................................... 134sdistance option .............................................................................................. 134merge option .................................................................................................. 135name option ................................................................................................... 135start option ..................................................................................................... 135stop option ..................................................................................................... 136title option ..................................................................................................... 136fix option ....................................................................................................... 136course option .................................................................................................. 136speed option ................................................................................................... 136seg2trk option ................................................................................................. 137trk2seg option ................................................................................................. 137segment option ............................................................................................... 137faketime option ............................................................................................... 137

    Rearrange waypoints by resorting (sort) ...................................................................... 138gcid option ..................................................................................................... 138shortname option ............................................................................................. 138description option ............................................................................................ 138time option .................................................................................................... 138

    Remove all waypoints, tracks, or routes (nuketypes) ...................................................... 138waypoints option ............................................................................................. 139tracks option .................................................................................................. 139routes option .................................................................................................. 139

    Remove Duplicates (duplicate) .................................................................................. 139shortname option ............................................................................................. 139location option ................................................................................................ 140all option ....................................................................................................... 140correct option ................................................................................................. 140

    Remove Points Within Distance (position) ................................................................... 140distance option ................................................................................................ 141all option ....................................................................................................... 141time option .................................................................................................... 141

    Remove unreliable points with high hdop or vdop (discard) ............................................ 141hdop option .................................................................................................... 142vdop option .................................................................................................... 142hdopandvdop option ........................................................................................ 142sat option ....................................................................................................... 142fixnone option ................................................................................................ 142fixunknown option .......................................................................................... 142elemin option ................................................................................................. 142elemax option ................................................................................................. 143

    Reverse stops within routes (reverse) .......................................................................... 143Save and restore waypoint lists (stack) ........................................................................ 143

    push option .................................................................................................... 144pop option ..................................................................................................... 144swap option .................................................................................................... 144copy option .................................................................................................... 144append option ................................................................................................. 144discard option ................................................................................................. 144

  • GPSBabel Documentation

    xiii

    replace option ................................................................................................. 145depth option ................................................................................................... 145

    Simplify routes (simplify) ......................................................................................... 145count option ................................................................................................... 145error option .................................................................................................... 145crosstrack option ............................................................................................. 146length option .................................................................................................. 146relative option ................................................................................................ 146

    Swap latitude and longitude of all loaded points (swap) .................................................. 146Transform waypoints into a route, tracks into routes, ... (transform) .................................. 146

    wpt option ..................................................................................................... 147rte option ....................................................................................................... 147trk option ....................................................................................................... 147del option ...................................................................................................... 147

    A. Supported Datums ....................................................................................................... 149B. Garmin Icons ............................................................................................................. 150C. GPSBabel XCSV Style Files ......................................................................................... 152

    Introduction to GPSBabel Styles ................................................................................ 152Style file overview .................................................................................................. 152Internal Constants ................................................................................................... 153

    WHITESPACE ............................................................................................... 154COMMENTS ................................................................................................. 154

    Global Properties of the File ..................................................................................... 154DESCRIPTION .............................................................................................. 154EXTENSION ................................................................................................. 154ENCODING ................................................................................................... 154DATUM ........................................................................................................ 155DATATYPE ................................................................................................... 155

    GPSBabel Behavior Directives .................................................................................. 155SHORTLEN ................................................................................................... 155SHORTWHITE .............................................................................................. 155

    Defining the Layout of the File ................................................................................. 155FIELD_DELIMITER ....................................................................................... 155RECORD_DELIMITER ................................................................................... 156BADCHARS .................................................................................................. 156PROLOGUE .................................................................................................. 156EPILOGUE .................................................................................................... 156

    Defining Fields Within the File ................................................................................. 156IGNORE ....................................................................................................... 157CONSTANT .................................................................................................. 157INDEX .......................................................................................................... 157SHORTNAME ............................................................................................... 158DESCRIPTION .............................................................................................. 158NOTES ......................................................................................................... 158URL ............................................................................................................. 158URL_LINK_TEXT .......................................................................................... 158ICON_DESCR ................................................................................................ 158LAT_DECIMAL ............................................................................................. 159LON_DECIMAL ............................................................................................ 159LAT_INT32DEG ............................................................................................ 159LON_INT32DEG ............................................................................................ 159LAT_DECIMALDIR / LAT_DIRDECIMAL ........................................................ 159LON_DECIMALDIR / LON_DIRDECIMAL ....................................................... 159LAT_DIR / LON_DIR ..................................................................................... 159

  • GPSBabel Documentation

    xiv

    LAT_HUMAN_READABLE ............................................................................ 160MAP_EN_BNG .............................................................................................. 160LON_HUMAN_READABLE ............................................................................ 160LATLON_HUMAN_READABLE ..................................................................... 160LAT_NMEA .................................................................................................. 160LAT_DDMMDIR ............................................................................................ 161LON_NMEA .................................................................................................. 161LON_DDMMDIR ........................................................................................... 161LAT_10EX / LON_10EX ................................................................................. 161UTM ............................................................................................................. 161UTM_EASTING ............................................................................................. 162UTM_NORTHING .......................................................................................... 162UTM_ZONE .................................................................................................. 162UTM_ZONEC ................................................................................................ 162.................................................................................................................... 162ALT_FEET .................................................................................................... 162ALT_METERS ............................................................................................... 162HEART_RATE ............................................................................................... 163CADENCE .................................................................................................... 163EXCEL_TIME ................................................................................................ 163TIMET_TIME ................................................................................................ 163YYYYMMDD_TIME ...................................................................................... 163GMT_TIME ................................................................................................... 163LOCAL_TIME ............................................................................................... 164HMSG_TIME ................................................................................................. 164HMSL_TIME ................................................................................................. 164ISO_TIME ..................................................................................................... 164ISO_TIME_MS .............................................................................................. 164NET_TIME .................................................................................................... 164GEOCACHE_DIFF ......................................................................................... 165GEOCACHE_TERR ........................................................................................ 165GEOCACHE_CONTAINER ............................................................................. 165GEOCACHE_TYPE ........................................................................................ 165GEOCACHE_PLACER .................................................................................... 165GEOCACHE_ISAVAILABLE .......................................................................... 165GEOCACHE_ISARCHIVED ............................................................................ 166GEOCACHE_LAST_FOUND ........................................................................... 166GEOCACHE_HINT ........................................................................................ 166PATH_DISTANCE_MILES .............................................................................. 166PATH_DISTANCE_KM .................................................................................. 166PATH_SPEED ................................................................................................ 166PATH_SPEED_KPH ....................................................................................... 167PATH_SPEED_MPH ....................................................................................... 167PATH_SPEED_KNOTS ................................................................................... 167PATH_COURSE ............................................................................................. 167GPS_HDOP / GPS_VDOP / GPS_PDOP ............................................................. 167GPS_SAT ...................................................................................................... 167GPS_FIX ....................................................................................................... 167TRACK_NEW ................................................................................................ 168TRACK_NAME ............................................................................................. 168ROUTE_NAME .............................................................................................. 168STREET_NAME ............................................................................................ 168CITY ............................................................................................................ 168COUNTRY .................................................................................................... 168

  • GPSBabel Documentation

    xv

    FACILITY ..................................................................................................... 169PHONE_NR ................................................................................................... 169POSTAL_CODE ............................................................................................. 169FILENAME ................................................................................................... 169FORMAT ...................................................................................................... 169

    Examples ............................................................................................................... 169Miscellaneous Notes ................................................................................................ 170

    Default Values ................................................................................................ 170Glossary ........................................................................................................................ 171

  • xvi

    List of Tables3.1. Grid values for garmin_txt ........................................................................................... 383.2. Supported distance units (garmin_gpi) ............................................................................ 423.3. Supported speed units (garmin_gpi) ............................................................................... 433.4. Track point structure (16 bytes) ..................................................................................... 563.5. Devices supported by MTK module ............................................................................... 853.6. Devices supported by skytraq module ........................................................................... 1043.7. Vito SmartMap track file header (8 bytes) ..................................................................... 1203.8. Vito SmartMap track point (32 bytes) ........................................................................... 120

  • xvii

    List of Examples2.1. Command showing Linux download from Magellan serial and writing to .loc file ..................... 32.2. Command showing Windows download from Magellan serial and writing to .loc file ................. 42.3. Merging multiple files into one ....................................................................................... 52.4. Merging multiple files of differing types. .......................................................................... 52.5. Writing the same data in multiple output formats. .............................................................. 52.6. Read realtime positioning from Garmin USB, write to Keyhole Markup .................................. 72.7. Read realtime positioning from Wintec WBT-201 via Bluetooth on Mac, write to KeyholeMarkup ............................................................................................................................. 73.1. Command showing writing to Bushnell files .................................................................... 133.2. Conversion of a v900 csv log file to a gpx format ............................................................. 153.3. Conversion of a v900 csv log file to a gpx 1.1 format ........................................................ 153.4. Example 'csv' file ....................................................................................................... 163.5. Command to send a pocket query (GPX) to a Delorme PN device ....................................... 223.6. Example for gdb bitcategory option to put all waypoints in categories 1 and 16. ...................... 353.7. Using gdb option roadbook to create simple html roadbook ............................................. 353.8. Command showing garmin_txt output with all options ....................................................... 373.9. Command showing garmin_gpi output example ................................................................ 403.10. Read GPX file, create GPI to alert when you're 1/2 mile from a speed camera. ...................... 423.11. Example for garmin bitcategory option to put all waypoints in categories 1 and 16. ................ 483.12. Command showing DG-100 download and erase on Linux ................................................ 523.13. Command showing DG-100 erase_only option on Linux .................................................. 523.14. Forcing creation of old Mobile Mapper files .................................................................. 793.15. Sample BCR command with all options ........................................................................ 813.16. Convert MTK binary trackpoints to GPX ...................................................................... 843.17. Command showing MTK download track and waypoints and erase on Linux ........................ 863.18. Command showing skytraq download of tracks and erasing the logger on Linux .................. 1043.19. Command showing skytraq erasing the logger without download on Linux ......................... 1043.20. Command showing skytraq download tracks via bluetooth on Linux .................................. 1043.21. Set the target location of the Skytraq location finder ...................................................... 1053.22. Command showing how to read data from an erased device ............................................. 1063.23. Example for splitoutput option to text format ................................................................ 1113.24. Example for unicsv format option to write names of input formats. ................................... 1183.25. Example for unicsv filename option to write filenames of input formats. ............................ 1193.26. Command showing conversion of a Wintec binary file to GPX ........................................ 1223.27. Command showing WBT-200 download and erase over Bluetooth on Mac OS X ................. 1233.28. Command showing conversion of a Wintec binary file to GPX ........................................ 1233.29. Command showing a download from itracku connected to com14. .................................... 1243.30. Command showing a download from itracku with automatic port detection. ........................ 1243.31. Download from the data logger while and append the new binary logger data to a backupfile. Read the contents of the backup file. ............................................................................ 1243.32. Download from the data logger and append the new logger data to a backup file. Output onlythe new waypoints. .......................................................................................................... 1253.33. Command showing reading an itracku data file. ............................................................ 1254.1. Using the polygon filter ............................................................................................. 1284.2. Using the polygon and arc filters to find points in or nearly in a polygon ............................. 1284.3. Using the arc filter .................................................................................................... 1294.4. Using the radius filter to find points close to a given point ................................................ 1304.5. Using the interpolate filter .......................................................................................... 1324.6. This option subtracts the WGS84 geoid height from every altitude. For GPS receivers like theiBlue747 the result is the height above mean see level. .......................................................... 1334.7. This options adds a constant value to every altitude. ........................................................ 133

  • GPSBabel Documentation

    xviii

    4.8. Time-shifting a track with the track filter ...................................................................... 1344.9. Merging tracks with the track filter .............................................................................. 1354.10. Extracting a period of time with the track filter ............................................................. 1364.11. Replace time values of a track ................................................................................... 1374.12. Add time values to a track ........................................................................................ 1384.13. Filtering data types with nuketypes ............................................................................. 1394.14. Using the duplicate filter to suppress points with the same name and location ...................... 1394.15. Using the duplicate filter to implement an "ignore list." .................................................. 1404.16. Using the duplicate filter to correct the locations of "puzzle" geocaches ............................. 1404.17. Using the position filter to suppress close points ........................................................... 1414.18. Using the discard filter for HDOP and VDOP. ............................................................. 1414.19. Using the discard filter to require at least three satellites. ............................................... 1424.20. Converting a track to a sequence of waypoints .............................................................. 1474.21. Converting a pile of waypoints to a GPX route ............................................................. 1474.22. Converting a pile of waypoints to a GPX track ............................................................. 1474.23. Convert a GPX track to GPX waypoints, tossing the original track .................................... 148

  • xix

    Introduction to GPSBabelThe Problem: Too many incompatible GPS fileformats

    There are simply too many gratuitously different file formats to hold waypoint, track, and route informationin various programs used by computers and GPS receivers. GPX [http://www.topografix.com/gpx.asp]defines a standard in XML to contain all the data, but there are too many programs that don't understandit yet and too much data in alternate formats.

    Perhaps you have an Explorist 600 and your friend has a StreetPilot 2720. You've collected a list of yourfavorite locations as waypoints and you'd like to be able to share them. Unfortunately, his copy of GarminMapsource won't read data created by your copy of Magellan Mapsend DirectRoute. What you need is aprogram that converts data bewteen the two programs.

    GPSBabel actually solves that problem for you and much more...

    The SolutionThe original author of GPSBabel, Robert Lipe [/people/robertlipe.html], needed to convert waypointsbetween a couple of formats, so he whipped up a converter and designed it upon an extensible foundationso that it was easy to add new formats and made the program freely available. Many others [/people/index.html] have contributed to the program since then.

    Most file formats added so far have taken under 200 lines of reasonable ISO C so they can be stampedout pretty trivially. Formats that are ASCII text delimited in some fixed way can be added with noprogramming at all via our style mechanism.

  • 1Chapter 1. Getting or BuildingGPSBabelDownloading - the easy way.

    GPSBabel is distributed "ready to run" on most common operating systems via the download page [http://www.gpsbabel.org/download.html].

    As GPSBabel runs on a wide variety of operating systems, be sure to visit the OS-Specific notes [http://www.gpsbabel.org/osnotes.html] for additional information.

    Building from source.For operating systems where no binary is provided or if you want the latest development version, you willhave to build it from source. The code should be compilable on any system with ISO C89 compilers. It'sbeen tested on UnixWare, OpenServer, OS/X, Linux, Solaris, and a variety of processors and compilers.

    You can grab a release from the GPSBabel download page [http://www.gpsbabel.org/download.html], butif you're going to be doing any development, you'll find that working from the GPSBabel CVS tree [http://sourceforge.net/cvs/?group_id=58972] is easier.

    In most cases, the code is as simple to build as running:

    ./configure && make

    Expat [http://expat.sourceforge.net] is strongly recommended for source builds as it is required for readingall the XML formats such as GPX. Fedora users may need to 'yum install expat-devel'. Ubuntu users mayneed to 'apt-get install expat libexpat-dev'.

    libusb [http://libusb.sourceforge.net] is recommended for OS/X and Linux if you want to use a USBGarmin. Fedora users may need to 'yum install libusb-devel'. Ubuntu users may need to 'apt-get installlibusb-dev'.

    There are additional flags that can be passed to configure to customize your build of GPSBabel.

    ./configure --help

    lists all the supported options, but of interest we have:

    --disable-shapefile Excludes the shapefile support.

    --disable-pdb Excludes the Palm database support and all formats that rely on it.

    --disable-csv Excludes all support for our something-separated formats.

    --disable-filters Excludes all filter support.

    --enable-efence Activate debugging mode for gpsbabel-debug.

    --with-doc=dir Specifies that the doc should be created and installed in dir.

  • Getting or Building GPSBabel

    2

    --without-libusb Disables use of libusb, even it's it's available.

    --with-zlib=(included)|system|no By default, we use our own version of zlib. If you specifysystem the system zlib is used. A value of no (or --without-zlib) disables zlib.

  • 3Chapter 2. UsageInvocation

    If you're using GPSBabel, you will need to know how to do at least two things: read data from a file, andwrite it to another file. There are four basic options you need to know to do those things:Command: -i formatMeaning: Set input formatCommand: -f filenameMeaning: Read fileCommand: -o formatMeaning: Set output formatCommand: -F filenameMeaning: Write output file

    ImportantCase matters. Notably -f (lowercase) sets the input file. -F (uppercase) sets the output file.

    The format parameters in the above list refer to the names of formats or file types supported byGPSBabel.

    gpsbabel -?

    will always show you the supported file types. In this document, the various supported formats are listedin Chapter 3, The Formats. The name that you would use on the command line follows the format namein parentheses.

    Options are always processed in order from left to right. In practical terms, this means that things you wantto read should appear in the command before things you want to write. This sometimes surprises new usersas adding options to turn on debugging at the end, for example, doesn't work as the debugging is turnedon after all the interesting work is done. The reason for this strict ordering becomes mor