Closed Vlad-Sol closed 1 year 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
'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.
Converting to/from GPX frormat caused loss of the waypoint type.
$ gpsbabel -i unicsv -f points.csv -o gpx,gpxver=1.1 -F points.gpx
The same happens in case of converting in opposite direction