Commit deb0eae
committed
shortbread: boundaries: Fix disputed boundary processing
Previously a member of multiple relations would take its disputed status
from the last relation processed. For example, processing a way that is
a member of two relations, with
type=boundary boundary=administrative admin_level=2
type=boundary boundary=disputed admin_level=2
would lead to order-dependent results, where disputed only comes from
the last relation processed. Another issue was that a relation with
type=boundary boundary=disputed
and no other tags would not be considered as tonumber(tags.admin_level)
is not truth-like.
Instead, what is done is to get the disputed status for the relation,
and then set it to true for the rinfos in that relation, not setting
any existing rinfos to false. They are only set false when creating the
entry in rinfos for the first time.1 parent 4208533 commit deb0eae
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | | - | |
94 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
101 | | - | |
| 110 | + | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
105 | | - | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | 117 | | |
| |||
0 commit comments