feat: mvt decode + download tiles

This commit is contained in:
Matthieu Bessat 2024-06-15 08:51:00 +02:00
parent 94898aca13
commit 4ae433d404
7 changed files with 79300 additions and 2 deletions

1
mvt_decode/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
venv/

10
mvt_decode/decode.py Normal file
View file

@ -0,0 +1,10 @@
import mapbox_vector_tile
import json
import sys
with open(sys.argv[1], 'rb') as f:
data = f.read()
decoded_data = mapbox_vector_tile.decode(data)
print(json.dumps(decoded_data))
with open('out.txt', 'w') as f:
f.write(repr(decoded_data))

79224
mvt_decode/out.json Normal file

File diff suppressed because it is too large Load diff

1
mvt_decode/out.txt Normal file

File diff suppressed because one or more lines are too long