GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
475 stars 126 forks source link

tt_wpttype_type is ignored in GPX #601

Closed Vlad-Sol closed 1 year ago

Vlad-Sol commented 4 years ago

Converting to/from GPX frormat caused loss of the waypoint type.

$ cat points.csv 
name,description,type,lon,lat
Test point,"Some description",Test_Type,170.0170786,-43.467213

$ gpsbabel -i unicsv -f points.csv -o gpx,gpxver=1.1 -F points.gpx

$ cat points.gpx 
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="GPSBabel - http://www.gpsbabel.org" xmlns="http://www.topografix.com/GPX/1/1">
  <metadata>
    <time>2020-06-28T13:24:32.396Z</time>
    <bounds minlat="-43.467213000" minlon="170.017078600" maxlat="-43.467213000" maxlon="170.017078600"/>
  </metadata>
  <wpt lat="-43.467213000" lon="170.017078600">
    <name>Test point</name>
    <cmt>Some description</cmt>
    <desc>Some description</desc>
  </wpt>
</gpx>

The same happens in case of converting in opposite direction

robertlipe commented 1 year ago

'type' in unicsv is a geocache type and is meaningless outside a geocaching context. It is not related anything in the base GPX specification.

It's an unfortunate abbreviation. Oops.