Changes between Version 28 and Version 29 of Rules/FranceSpecificRules
- Timestamp:
- 2020-04-01T22:25:32+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/FranceSpecificRules
v28 v29 55 55 group: tr("deprecated tagging"); 56 56 fixAdd: "operator=Enedis"; 57 -osmoseItemClassLevel: "4010/40103/3"; 58 -osmoseTags: list("tag", "infrastructure"); 57 59 } 58 60 … … 63 65 group: tr("deprecated tagging"); 64 66 fixChangeKey: "ref:ERDF:gdo=>ref:FR:gdo"; 67 -osmoseItemClassLevel: "4010/40104/3"; 68 -osmoseTags: list("ref", "infrastructure"); 65 69 } 66 70 … … 68 72 *[ref:FR:gdo][ref:FR:gdo!~/[0-9AB]{5}[A-Z]{1,3}[0-9]{4,}/][inside("FR")] { 69 73 throwWarning: tr("{0} is invalid", "{0.tag}"); 74 -osmoseItemClassLevel: "3040/30401/3"; 75 -osmoseTags: list("ref", "infrastructure"); 70 76 } 71 77 … … 74 80 throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}"); 75 81 group: tr("missing tag"); 82 -osmoseItemClassLevel: "3040/30402/3"; 83 -osmoseTags: list("ref", "infrastructure"); 76 84 } 77 85 … … 84 92 throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}"); 85 93 group: tr("missing tag"); 86 } 87 /* validation rules for French RIU (Referentiel Inter Urbain) at https://www.data.gouv.fr/fr/datasets/bornage-du-reseau-routier-national /* 94 -osmoseItemClassLevel: "3040/30403/3"; 95 -osmoseTags: list("ref", "infrastructure"); 96 } 97 98 /* validation rules for French RIU (Referentiel Inter Urbain) at https://www.data.gouv.fr/fr/datasets/bornage-du-reseau-routier-national */ 88 99 node[highway=milestone][nat_ref][nat_ref!~/([1-9][0-9]|0[1-9])PR([0-9]|[1-9][0-9]|[1-9][0-9][0-9])[DGU](|C)$/][inside("FR")] { 89 throwWarning: tr("{0} is not a node valid reference RIU", "{1.tag}");100 throwWarning: tr("{0} is not a milestone valid reference RIU", "{1.tag}"); 90 101 group: tr("validation rules highway milestone"); 102 -osmoseItemClassLevel: "3040/30403/3"; 103 -osmoseTags: list("ref", "highway"); 91 104 -osmoseAssertNoMatch: list("node highway=milestone ref=\"A 4\" distance=38 nat_ref=77PR38DC operator=SANEF", "inside=FR"); 92 105 } 106 93 107 /* missing ref for milestone */ 94 108 node[highway=milestone][!ref][inside("FR")] { 95 109 throwWarning: tr("missing ref"); 96 110 group: tr("validation rules highway milestone"); 97 } 111 -osmoseTags: list("ref", "highway"); 112 } 113 98 114 /* missing distance for milestone */ 99 115 node[highway=milestone][!distance][inside("FR")] { 100 116 throwWarning: tr("missing distance"); 101 117 group: tr("validation rules highway milestone"); 102 } 103 104 /* # Select major roads */ 118 -osmoseTags: list("ref", "highway"); 119 } 120 121 /* Select major roads */ 105 122 way[highway=~/^(motorway|trunk|primary|secondary|tertiary)$/] { 106 123 set major_road; 107 124 } 108 /* # Select links roads */ 125 126 /* Select links roads */ 109 127 way[highway=~/^.*_link$/] { 110 128 set link_road; 111 129 } 112 /* # tag nat_ref is for links roads, ref is on major roads */ 130 131 /* tag nat_ref is for links roads, ref is on major roads */ 113 132 way.major_road[nat_ref][operator][inside("FR")] { 114 133 throwWarning: tr("{0} must be a link road", "{1.tag}"); 115 134 group: tr("validation rules nat_ref in France"); 135 -osmoseTags: list("ref", "highway"); 116 136 -osmoseAssertNoMatchWithContext: list("way highway=primary_link nat_ref=62A901609CD_2 operator=SANEF", "inside=FR"); 117 137 } 138 118 139 way.major_road[nat_ref:backward][operator][inside("FR")] { 119 140 throwWarning: tr("{0} must be a link road ", "{1.tag}"); 120 141 group: tr("validation rules nat_ref in France"); 142 -osmoseTags: list("ref", "highway"); 121 143 -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref:forward=62A902615CD_1 nat_ref:backward=62A902615CD_2 operator='SANEF'", "inside=FR"); 122 144 } 145 123 146 way.major_road[nat_ref:forward][operator][inside("FR")] { 124 147 throwWarning: tr("{0} must be a link road", "{1.tag}"); 125 148 group: tr("validation rules nat_ref in France"); 126 } 127 /* # tag nat_ref is well formed */ 149 -osmoseTags: list("ref", "highway"); 150 } 151 152 /* tag nat_ref is well formed */ 128 153 way.link_road[nat_ref][operator!="VILLE DE PARIS"][nat_ref!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]{2}[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] { 129 154 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 130 155 group: tr("validation rules nat_ref in France"); 156 -osmoseTags: list("ref", "highway"); 131 157 -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref=80A901645CD_6 operator=SANEF", "inside=FR"); 132 158 } 133 /* # tag nat_ref is well formed specific Paris*/ 159 160 /* tag nat_ref is well formed specific Paris*/ 134 161 way.link_road[nat_ref][operator="VILLE DE PARIS"][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])$/][inside("FR")] { 135 162 throwWarning: tr("{0} is not a valid reference (Paris)", "{1.tag}"); 136 163 group: tr("validation rules nat_ref in France"); 164 -osmoseTags: list("ref", "highway"); 137 165 -osmoseAssertNoMatchWithContext: list("way highway=trunk_link nat_ref=75Periph_Paris_05_3 operator=\"VILLE DE PARIS\"", "inside=FR"); 138 166 } 167 139 168 way.link_road[nat_ref:forward][nat_ref:forward!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]{2}[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] { 140 169 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 141 170 group: tr("validation rules nat_ref in France"); 171 -osmoseTags: list("ref", "highway"); 142 172 -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref:forward=62A902615CD_1 nat_ref:backward=62A902615CD_2 operator=SANEF", "inside=FR"); 143 173 } 174 144 175 way.link_road[nat_ref:backward][nat_ref:backward!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]{2}[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] { 145 176 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 146 177 group: tr("validation rules nat_ref in France"); 147 } 148 /* # nat_ref reference without operator */ 178 -osmoseTags: list("ref", "highway"); 179 } 180 181 /* nat_ref reference without operator */ 149 182 way[highway][nat_ref][!operator][inside("FR")] { 150 183 throwWarning: tr("Missing tag operator with nat_ref"); 151 184 group: tr("validation rules nat_ref in France"); 152 } 185 -osmoseTags: list("ref", "highway"); 186 } 187 153 188 way[highway][nat_ref:forward][!operator][inside("FR")] { 154 189 throwWarning: tr("Missing tag operator with nat_ref"); 155 190 group: tr("validation rules nat_ref in France"); 156 } 191 -osmoseTags: list("ref", "highway"); 192 } 193 157 194 way[highway][nat_ref:backward][!operator][inside("FR")] { 158 195 throwWarning: tr("Missing tag operator with nat_ref"); 159 196 group: tr("validation rules nat_ref in France"); 160 } 197 -osmoseTags: list("ref", "highway"); 198 } 199 161 200 way.link_road[nat_ref:forward][oneway=~/^(yes|1|-1)$/][inside("FR")] { 162 201 throwWarning: tr("{0} no tag forward if oneway", "{2.tag}"); 163 202 group: tr("validation rules nat_ref in France"); 164 } 203 -osmoseTags: list("ref", "highway"); 204 } 205 165 206 way.link_road[nat_ref:backward][oneway=~/^(yes|1|-1)$/][inside("FR")] { 166 207 throwWarning: tr("{0} no tag backward if oneway", "{2.tag}"); 167 208 group: tr("validation rules nat_ref in France"); 168 } 169 209 -osmoseTags: list("ref", "highway"); 210 } 170 211 171 212 }}}
