From a08c20d7c88d459e97d9865ae57e757f8f0dc1de Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 28 Dec 2022 09:35:11 +0100 Subject: [PATCH] build_shapes: cleanup shape union of RS and KV --- scripts/build_shapes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_shapes.py b/scripts/build_shapes.py index dff6313d..cda27963 100644 --- a/scripts/build_shapes.py +++ b/scripts/build_shapes.py @@ -129,6 +129,8 @@ def countries(naturalearth, country_list): s = df.set_index("name")["geometry"].map(_simplify_polys) if "RS" in country_list: s["RS"] = s["RS"].union(s.pop("KV")) + # cleanup shape union + s["RS"] = Polygon(s["RS"].exterior.coords) return s