Skip to content

Instantly share code, notes, and snippets.

View heyitsgarrett's full-sized avatar

Garrett Miller heyitsgarrett

View GitHub Profile
@heyitsgarrett
heyitsgarrett / gpx-to-single-geojson.sh
Created August 16, 2021 20:56
Convert a set of GPX files to a single GeoJSON
# Convert a set of GPX files to a single GeoJSON, using:
# - https://github.com/mapbox/togeojson
# - https://github.com/mapbox/geojson-merge
for filename in *.gpx
do
togeojson $filename > geojsons/$filename.geojson
done
# Merge the files into one in the end