Changes between Version 40 and Version 41 of Rules/FranceSpecificRules
- Timestamp:
- 2020-04-10T07:47:45+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/FranceSpecificRules
v40 v41 96 96 } 97 97 98 99 /* Select milestone nodes */ 100 node[highway=milestone][nat_ref] { 101 set pr_node; 102 } 103 104 98 105 /* validation rules for French RIU (Referentiel Inter Urbain) at https://www.data.gouv.fr/fr/datasets/bornage-du-reseau-routier-national */ 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")] {106 node.pr_node[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")] { 100 107 throwWarning: tr("{0} is not a milestone valid reference RIU", "{1.tag}"); 101 108 group: tr("validation rules highway milestone"); … … 106 113 107 114 /* missing ref for milestone */ 108 node [highway=milestone][nat_ref][!ref][inside("FR")] {115 node.pr_node[nat_ref][!ref][inside("FR")] { 109 116 throwWarning: tr("missing ref"); 110 117 group: tr("validation rules highway milestone"); … … 113 120 114 121 /* missing distance for milestone */ 115 node [highway=milestone][nat_ref][!distance][inside("FR")] {122 node.pr_node[nat_ref][!distance][inside("FR")] { 116 123 throwWarning: tr("missing distance"); 117 124 group: tr("validation rules highway milestone"); … … 174 181 } 175 182 176 way.link_road["nat_ref:forward"]["nat_ref:forward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")] { 183 way.link_road["nat_ref:forward"]["nat_ref:forward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")], 184 way.link_road["nat_ref:backward"]["nat_ref:backward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")]{ 177 185 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 178 186 group: tr("validation rules nat_ref in France"); 179 187 -osmoseTags: list("ref", "highway"); 180 188 -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref:forward=62A902615CD_1 nat_ref:backward=62A902615CD_2 operator=SANEF", "inside=FR"); 181 }182 183 way.link_road["nat_ref:backward"]["nat_ref:backward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {184 throwWarning: tr("{0} is not a valid reference", "{1.tag}");185 group: tr("validation rules nat_ref in France");186 -osmoseTags: list("ref", "highway");187 189 } 188 190 … … 194 196 } 195 197 196 way[highway]["nat_ref:forward"][!operator][inside("FR")] { 197 throwWarning: tr("Missing tag operator with nat_ref"); 198 group: tr("validation rules nat_ref in France"); 199 -osmoseTags: list("ref", "highway"); 200 } 201 198 way[highway]["nat_ref:forward"][!operator][inside("FR")], 202 199 way[highway]["nat_ref:backward"][!operator][inside("FR")] { 203 200 throwWarning: tr("Missing tag operator with nat_ref"); … … 206 203 } 207 204 208 way.link_road["nat_ref:forward"][oneway=~/^(yes|1|-1)$/][inside("FR")] { 205 way.link_road["nat_ref:forward"][oneway=~/^(yes|1|-1)$/][inside("FR")], 206 way.link_road["nat_ref:backward"][oneway=~/^(yes|1|-1)$/][inside("FR")] { 209 207 throwWarning: tr("{0} no tag forward if oneway", "{2.tag}"); 210 208 group: tr("validation rules nat_ref in France"); … … 212 210 } 213 211 214 way.link_road["nat_ref:backward"][oneway=~/^(yes|1|-1)$/][inside("FR")] {215 throwWarning: tr("{0} no tag backward if oneway", "{2.tag}");216 group: tr("validation rules nat_ref in France");217 -osmoseTags: list("ref", "highway");218 }219 220 212 }}}
