summaryrefslogtreecommitdiffhomepage
path: root/scripts/mvt_decode.py
blob: 6e4200675b598cc65d8595d5722e0cc2d5077af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import mapbox_vector_tile
import sys

#Python3

mvt = sys.argv[1]

print(mvt)

with open(mvt, 'rb') as f:
    data = f.read()
    decoded_data = mapbox_vector_tile.decode(data)
    with open(mvt + '_decode.txt', 'w') as f:
        print(decoded_data)