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

#Python3

mvt = sys.argv[1]

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)