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)