From 59143bfc9fd44cbd2a091021224d7c7149564ee3 Mon Sep 17 00:00:00 2001 From: Famlam Date: Sat, 16 Dec 2023 17:54:22 +0100 Subject: [PATCH] Tolerate empty role in table multipolygons Prevent building invalid, partial or incorrect MP in case the outer way has no role (even though this is deprecated, there's still 17035 such ways in MP relations worldwide) Previously such ways are ignored while building table multipolygons (and except for filtering for `inner` and `outer`, the roles are not actively used while constructing table multipolygons) --- analysers/Analyser_Osmosis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysers/Analyser_Osmosis.py b/analysers/Analyser_Osmosis.py index db031003b..67048b520 100644 --- a/analysers/Analyser_Osmosis.py +++ b/analysers/Analyser_Osmosis.py @@ -135,7 +135,7 @@ class Analyser_Osmosis(Analyser): JOIN relation_members ON relation_members.relation_id = relations.id AND relation_members.member_type = 'W' AND - relation_members.member_role IN ('outer', 'inner') + relation_members.member_role IN ('outer', 'inner', '') LEFT JOIN ways ON ways.id = relation_members.member_id WHERE