RouteConverter Forum

Full Version: Multiple "batch" conversion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
awesome program! I tried to get though it and got "nearly there" but there's probably something more I am missing.

I have a large collections of routes (they are in .gpx format, apparently created with compeGPS, one file for each route) and I need to convert them into tracks (still gpx files, but in track format vs. route).
I can load many routes into RouteConverter all right, and I can save them all in a single .gpx file containing all the segments, but in order fot the result to be a "track" and not a "route" I seem to have to manually set the "track" type in every single list position.
After doing so, I do obtain a single gpx file with all separate tracks inside, but this would require that I select and set to "track" everyone of possibly 500+ list positions! Obviously not feasible...
I wonder if there's a way to obtain the same result with a reasonable number of operations (say "all tracks"...)
Or maybe there's a better way altogether (or a different tool?) to get the same result, which I may have missed.
Thank anybody for any suggestions!
(06.04.2022, 14:51)Zava Wrote: [ -> ]Hello,
awesome program!

You're welcome!

(06.04.2022, 14:51)Zava Wrote: [ -> ]I can load many routes into RouteConverter all right, and I can save them all in a single .gpx file containing all the segments,

And after that you could use an text editor and do some global search and replace:

    <trk>
        <trkseg>
            <trkpt lat="48.087016" lon="11.554912">
                ...

needs to become

    <rte>
        <rtept lat="54.3253497" lon="10.0640099">
        ...
(06.04.2022, 14:51)Zava Wrote: [ -> ]I wonder if there's a way to obtain the same result with a reasonable number of operations (say "all tracks"...)
Or maybe there's a better way altogether (or a different tool?) to get the same result, which I may have missed.

My tool of choice for operations like this is GPS Babel, just make yourself familiar with its options.
(08.04.2022, 09:37)routeconverter Wrote: [ -> ]Thank you for your suggestion!
I assume the variation of the coordinates you show was just a glitch in the example and the relevant change is just that with trk -> rte etc.
Actually, I believe the search/replace should go the other way 'round to turno routes into tracks.

In fact I found a more direct and "automated" way: loading all separate GPS route files into WINGDB3 and then call for a "preview": this opens Mapsource with all routes turned into tracks (requires a confirmation); at that point you can save as GPX and the resulting file contains all the tracks as, indeed, tracks.

Quite handy.


(06.04.2022, 14:51)Zava Wrote: [ -> ]I can load many routes into RouteConverter all right, and I can save them all in a single .gpx file containing all the segments,

And after that you could use an text editor and do some global search and replace:

    <trk>
        <trkseg>
            <trkpt lat="48.087016" lon="11.554912">
                ...

needs to become

    <rte>
        <rtept lat="54.3253497" lon="10.0640099">
        ...
(08.04.2022, 14:49)nordlicht Wrote: [ -> ]My tool of choice for operations like this is GPS Babel, just make yourself familiar with its options.

Thank you Hans,
in my limited knowledge of GPSBabel, I can see a way to translate a route into a track, but can I translate 200 routes into a (single) GPX track? Or at least into 200 separate gpx tracks?
In the meanwhile I found a handy way: you can load hundreds of gpx routes into WINGDB3, then start a "preview", which opens MapSource and asks for permission to treat routes as tracks. As a result, MapSource is opoened and loads all routes as tracks and can save them as a single gpx file containing tracks (not routes).
In the end, quite handy.
(08.04.2022, 19:01)Zava Wrote: [ -> ]in my limited knowledge of GPSBabel, I can see a way to translate a route into a track, but can I translate 200 routes into a (single) GPX track? Or at least into 200 separate gpx tracks?

Search for "GPS Babel Batch mode" or "GPS Babel bulk conversion". Not all of Babel's features are accessible by the GUI, you may have to use the command line.
Thank you!