build_shapes: cleanup shape union of RS and KV

This commit is contained in:
Fabian Neumann 2022-12-28 09:35:11 +01:00
parent bb5c5bd143
commit a08c20d7c8

View File

@ -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