Created
July 30, 2021 06:53
-
-
Save danielreiser/384b306c91ccd886986f7b48d3c6cf09 to your computer and use it in GitHub Desktop.
Ungzip the extracted vector files from mbutil
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
# Un-gzip them | |
gzip -d -r -S .pbf * | |
# Rename them (this also renames all non-pbf files) | |
find . -type f -exec mv '{}' '{}'.pbf \; | |
# As i said, it renames all files so we have to remove the suffix once more | |
mv metadata.json{.pbf,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment