Changes between Version 20 and Version 21 of Rules/FranceSpecificRules
- Timestamp:
- 2020-03-29T15:46:02+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/FranceSpecificRules
v20 v21 89 89 /* # nat_ref is well formed on node (milestone) */ 90 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")] { 91 throwWarning: tr("{1} is not a valid reference RIU", "{1.tag}"); 92 -osmoseAssertMatchWithContext: list("node highway=milestone ref='A 4' nat_ref='77PR38DC' operator='SANEF'","inside=FR"); 91 throwWarning: tr("{1} is not a node valid reference RIU", "{1.tag}"); 92 group: tr("validation rules nat_ref in france"); 93 -osmoseAssertMatchWithContext: list("node highway=milestone nat_ref=77PR38DC operator=SANEF", "inside=FR"); 93 94 } 94 95 /* # Select major roads */ … … 103 104 way.major_road[nat_ref][operator][inside("FR")] { 104 105 throwWarning: tr("{1} must be a link road", "{1.tag}"); 106 group: tr("validation rules nat_ref in france"); 105 107 -osmoseAssertMatchWithContext: list("way highway=primary_link nat_ref='62A901609CD_2' operator='SANEF'", "inside=FR"); 106 108 -osmoseAssertNoMatchWithContext: list("way highway=primary nat_ref='62A901609CD_2' operator='SANEF'", "inside=FR"); … … 108 110 way.major_road[nat_ref:backward][operator][inside("FR")] { 109 111 throwWarning: tr("{1} must be a link road", "{1.tag}"); 112 group: tr("validation rules nat_ref in france"); 110 113 -osmoseAssertMatchWithContext: list("way highway=motorway_link nat_ref:forward='62A902615CD_1' nat_ref:backward='62A902615CD_2' operator='SANEF'", "inside=FR"); 111 114 -osmoseAssertNoMatchWithContext: list("way highway=motorway nat_ref:forward='62A902615CD_1' nat_ref:backward='62A902615CD_2' operator='SANEF'", "inside=FR"); … … 117 120 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")] { 118 121 throwWarning: tr("{1} is not a valid reference", "{1.tag}"); 122 group: tr("validation rules nat_ref in france"); 119 123 -osmoseAssertMatchWithContext: list("way highway=motorway_link nat_ref='94A900402_1' operator='DIRIF'", "inside=FR"); 120 124 -osmoseAssertMatchWithContext: list("way highway=motorway_link nat_ref='80A901645CD_6' operator='SANEF'", "inside=FR"); … … 124 128 way.link_road[nat_ref][operator="VILLE DE PARIS"][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])/][inside("FR")] { 125 129 throwWarning: tr("{1} is not a valid reference (Paris)", "{1.tag}"); 130 group: tr("validation rules nat_ref in france"); 126 131 -osmoseAssertMatchWithContext: list("way highway=trunk_link nat_ref='75Periph_Paris_05_3' operator='VILLE DE PARIS'", "inside=FR"); 127 132 } … … 129 134 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] { 130 135 throwWarning: tr("{1} is not a valid reference", "{1.tag}"); 136 group: tr("validation rules nat_ref in france"); 131 137 -osmoseAssertMatchWithContext: list("way highway=motorway_link nat_ref:forward='62A902615CD_1' nat_ref:backward='62A902615CD_2' operator=SANEF", "inside=FR"); 132 138 -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref:forward='62A902615CD_1' one_way='yes' operator='SANEF'", "inside=FR"); … … 135 141 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] { 136 142 throwWarning: tr("{1} is not a valid reference", "{1.tag}"); 143 group: tr("validation rules nat_ref in france"); 137 144 } 138 145 /* # nat_ref reference without operator */ 139 146 way[highway][nat_ref][!operator][inside("FR")] { 140 147 throwWarning: tr("Missing tag operator with nat_ref"); 148 group: tr("validation rules nat_ref in france"); 141 149 } 142 150 way[highway][nat_ref:forward][!operator][inside("FR")] { 143 151 throwWarning: tr("Missing tag operator with nat_ref"); 152 group: tr("validation rules nat_ref in france"); 144 153 } 145 154 way[highway][nat_ref:backward][!operator][inside("FR")] { 146 155 throwWarning: tr("Missing tag operator with nat_ref"); 156 group: tr("validation rules nat_ref in france"); 147 157 } 148 158 159 149 160 }}}
