Skip to content

Commit

Permalink
Tolerate empty role in table multipolygons
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Famlam authored Dec 16, 2023
1 parent af27f78 commit 59143bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysers/Analyser_Osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59143bf

Please sign in to comment.