Re: [Gpsbabel-misc] Complex Unicsv
GPSBabel converts and transfers data like waypoints, tracks & routes.
Brought to you by:
robertl
|
From: Robert L. <rob...@gp...> - 2020-11-09 02:02:35
|
No, not really. At that point, you no longer really have a CSV file, you have a file that's CSV clumps of waypoints and then some kind of a separator for some CSV clumps of tracks and some CSV clumps of routepoints and some hopeful promises that the columns in all of those clumps line up. So that's way beyond the promises that unicsv can make or keep. Really, it's beyond what our Style Files can handle. You can see a few examples that sort of try to handle this (tomtom asc/itn, kompass tk/wp) but really they just end up defining two .style files with DATATYPE for route, track, waypoint that handles each data type in a different file. Most files with the basic CSV traits are pretty easy to do in "real" C++. Look at any of our examples that call csv_lineparse() or QString....split(). You can see PCX or Ozi as examples of the latter, each handling headers "in the middle". MyNav is a super-simple example of what I think you're describing. Writing one from scratch with this number of examples isn't tough. It's a reasonable project to manage through the likes of freelancer if you just really really don't want to DIY. Good luck! RJL On Sun, Nov 8, 2020 at 12:30 PM palych_a--- via Gpsbabel-misc < gps...@li...> wrote: > > 1. How can I create a shared csv file that includes both waypoints and > tracks? > > For example, I have a gpx track that has both, and I want to output a csv > file with both points of interest and points of the track, so that they are > separated. > But it doesn't work as standard, I only get the track list, points of > interest are discarded. > > > 1. Also, if I don't know if the gpx file contains a route or a track, > I tried to use -w -t -r, but I get the error that I only need to use one. > It turns out that I need to determine the contents of the input file (trk > or rte) before converting? > > -- > Aleksandr > _______________________________________________ > Gpsbabel-misc mailing list http://www.gpsbabel.org > Gps...@li... > To unsubscribe, change list options, or see archives, visit: > https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc > |