From 6fae25b305d714b3ab7608fa003f1af9bf024545 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 14 Feb 2023 13:33:23 +0800 Subject: Rename tools into bin --- bin/misc/mvt_decode.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/misc/mvt_decode.py (limited to 'bin/misc/mvt_decode.py') diff --git a/bin/misc/mvt_decode.py b/bin/misc/mvt_decode.py new file mode 100755 index 0000000..7c9ac89 --- /dev/null +++ b/bin/misc/mvt_decode.py @@ -0,0 +1,11 @@ +#! /bin/env python3 + +import mapbox_vector_tile +import sys + +mvt = sys.argv[1] + +with open(mvt, 'rb') as f: + data = f.read() + decoded_data = mapbox_vector_tile.decode(data) + print(decoded_data) -- cgit v1.2.3-70-g09d2