I have some GPX track files, each containing tracks with thousands of trackpoints.
I need to split those files into multiple ones, each with 500 (or more, accordingly) points each.
Unfortunately I cannot simplify those tracks, I really need to split them.
As long as I could find, gpsbabel isn't able to do so. I am open to use any tool either on Linux (preferably) or Windows as well.
Best Answer
Surprisingly it seems gpsbabel indeed can't do it. But at least it can help by first converting to csv. Then I split the result with Unix'
split
and convert back to gpx with gpsbabel. A similar strategy might work with PowerShell, but I don't know if it has asplit
equivalent. Here is the bash function I used:EDIT: Added hint from comments about getting track points out instead of way points.