feat: mvt decode + download tiles
This commit is contained in:
parent
94898aca13
commit
4ae433d404
7 changed files with 79300 additions and 2 deletions
1
mvt_decode/.gitignore
vendored
Normal file
1
mvt_decode/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
venv/
|
||||
10
mvt_decode/decode.py
Normal file
10
mvt_decode/decode.py
Normal 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
79224
mvt_decode/out.json
Normal file
File diff suppressed because it is too large
Load diff
1
mvt_decode/out.txt
Normal file
1
mvt_decode/out.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue