From 2a723f74bdd46e2858ba56276c18843d48d06fda Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Thu, 14 Oct 2021 23:43:55 +0300 Subject: [PATCH] Refine area detection. --- map_machine/constructor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/map_machine/constructor.py b/map_machine/constructor.py index e3e6000..c54f32a 100644 --- a/map_machine/constructor.py +++ b/map_machine/constructor.py @@ -282,6 +282,7 @@ class Constructor: ) if not ( line.get_tag("area") == "yes" + or line.get_tag("type") == "multipolygon" or is_cycle(outers[0]) and line.get_tag("area") != "no" and self.scheme.is_area(line.tags)