From 6a4a40394286fdf85065186d43c2d1e98c49250b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20BAPTISTE?= <7817985+francois-baptiste@users.noreply.github.com> Date: Thu, 20 Jul 2023 10:32:34 +0200 Subject: [PATCH] fix NameError: name 'data' is not defined in convert.py (#220) --- python/pmtiles/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pmtiles/convert.py b/python/pmtiles/convert.py index ed3e0ff..6b61f6c 100644 --- a/python/pmtiles/convert.py +++ b/python/pmtiles/convert.py @@ -177,4 +177,4 @@ def pmtiles_to_dir(input, output): path = os.path.join(directory, str(zxy[2]) + "." + "mvt") os.makedirs(directory, exist_ok=True) with open(path, "wb") as f: - f.write(data) + f.write(tile_data)