Changes between Version 32 and Version 33 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2020-04-06T08:58:49+02:00 (6 years ago)
Author:
didier2020
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rules/FranceSpecificRules

    v32 v33  
    151151
    152152/* tag nat_ref is well formed */
    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][0-9]*[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
     153way.link_road[nat_ref][operator!="VILLE DE PARIS"][nat_ref!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]?[0-9][a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
    154154    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    155155    group: tr("validation rules nat_ref in France");
    156156    -osmoseTags: list("ref", "highway");
    157157    -osmoseAssertNoMatchWithContext: list("way highway=motorway_link nat_ref=80A901645CD_6 operator=SANEF", "inside=FR");
     158}
     159
     160/* tag nat_ref is well formed on roundabout*/
     161way.major_road[nat_ref][junction=roundabout][nat_ref!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]?[0-9][a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
     162    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
     163    group: tr("validation rules nat_ref in France");
     164    -osmoseTags: list("ref", "highway");
     165    -osmoseAssertNoMatchWithContext: list("way highway=primary junction=roundabout nat_ref=80A901645_6 operator=DIRN", "inside=FR");
    158166}
    159167
     
    166174}
    167175
    168 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]*[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
     176way.link_road[nat_ref:forward][nat_ref:forward!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]?[0-9][a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
    169177    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    170178    group: tr("validation rules nat_ref in France");
     
    173181}
    174182
    175 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]*[a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
     183way.link_road[nat_ref:backward][nat_ref:backward!~/([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}[0-9]?[0-9][a-z]*(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
    176184    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    177185    group: tr("validation rules nat_ref in France");