From 8daf16baa75f048574216a21234f90363b56cdf5 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 15 Aug 2019 23:51:40 +0800 Subject: update --- scripts/mvt_decode.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/mvt_decode.py (limited to 'scripts/mvt_decode.py') diff --git a/scripts/mvt_decode.py b/scripts/mvt_decode.py new file mode 100644 index 0000000..6e42006 --- /dev/null +++ b/scripts/mvt_decode.py @@ -0,0 +1,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) -- cgit v1.2.3-70-g09d2