Skip to content

Instantly share code, notes, and snippets.

@danielreiser
Created July 30, 2021 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielreiser/384b306c91ccd886986f7b48d3c6cf09 to your computer and use it in GitHub Desktop.
Save danielreiser/384b306c91ccd886986f7b48d3c6cf09 to your computer and use it in GitHub Desktop.
Ungzip the extracted vector files from mbutil
# 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