Created
March 4, 2019 14:10
-
-
Save andrewharvey/54294291ebaa676993def3cdc4cfac26 to your computer and use it in GitHub Desktop.
Inspect an mbgl-offline pack and generate a GeoJSON of the containing tiles
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
#!/bin/sh | |
sqlite3 -separator ',' offline.db 'select x,y,z from tiles;' | sed 's/^/[/' | sed 's/$/]/' | mercantile shapes --indent 2 > offline.tiles.geojson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment