Geo

I hacked a C++ tool for converting GPX files to GeoJson, because the only one I could find used Node.js. The tool is available on GitHub. Binaries are available for GNU/Linux, the tool should be compatible with MacOS and Windows (Not tested).

Runtime comparison with togeojson (Node.js)

1

2

3

4

$time togeojson iceland-landmannalaugar-porsmork.gpx>/dev/null

real0m0.563s

user0m0.680s

sys0m0.032s

And now with my tool

1

2

3

4

$time geoJson iceland-landmannalaugar-porsmork.gpx>/dev/null

real0m0.040s

user0m0.024s

sys0m0.012s

It's dirty, I wrote in in about an hour, but it does the job for my purposes and I want to share it in case someone else finds it useful.