Changes between Version 22 and Version 23 of Rules/FranceSpecificRules
- Timestamp:
- 2020-03-30T09:29:31+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/FranceSpecificRules
v22 v23 88 88 /* #xxxxx add validation rules for French RIU (Referentiel Inter Urbain) at https://www.data.gouv.fr/fr/datasets/bornage-du-reseau-routier-national/* 89 89 /* # nat_ref is well formed on node (milestone) */ 90 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")] {90 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)$/] { 91 91 throwWarning: tr("{0} is not a node valid reference RIU", "{1.tag}"); 92 92 group: tr("validation rules nat_ref in France"); 93 -osmoseAssertMatchWithContext: list("node highway=milestone nat_ref=77PR38DC operator=SANEF","inside=FR"); 93 -osmoseAssertMatch: list("node highway=milestone distance=38 ref='A 4' nat_ref=77PR38DC operator=SANEF"); 94 -osmoseAssertNoMatch: list("node highway=milestone distance=38"); 94 95 } 95 96 /* # Select major roads */ … … 119 120 } 120 121 /* # tag nat_ref is well formed */ 121 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")] { 122 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")] { 122 123 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 123 124 group: tr("validation rules nat_ref in France"); … … 127 128 } 128 129 /* # tag nat_ref is well formed specific Paris*/ 129 way.link_road[nat_ref][operator="VILLE DE PARIS"][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])/][inside("FR")] { 130 way.link_road[nat_ref][operator="VILLE DE PARIS"][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])$/][inside("FR")] { 130 131 throwWarning: tr("{0} is not a valid reference (Paris)", "{1.tag}"); 131 132 group: tr("validation rules nat_ref in France"); 132 133 -osmoseAssertMatchWithContext: list("way highway=trunk_link nat_ref='75Periph_Paris_05_3' operator='VILLE DE PARIS'", "inside=FR"); 133 134 } 134 135 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")][one_way!=yes] { 135 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")][one_way!=yes] { 136 136 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 137 137 group: tr("validation rules nat_ref in France"); … … 140 140 -osmoseAssertNoMatchWithContext: list("way highway=motorway nat_ref:forward='62A902615CD_1' one_way='no' operator='SANEF'", "inside=FR"); 141 141 } 142 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")][one_way!=yes] { 142 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")][one_way!=yes] { 143 143 throwWarning: tr("{0} is not a valid reference", "{1.tag}"); 144 144 group: tr("validation rules nat_ref in France"); … … 158 158 } 159 159 160 160 161 }}}
