Created
August 16, 2021 20:56
-
-
Save heyitsgarrett/53ab39e3ecfffa15fc767d20a9e85f0e to your computer and use it in GitHub Desktop.
Convert a set of GPX files to a single GeoJSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
geojson-merge geojsons/*.geojson > combined.geojson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment