Changes between Version 36 and Version 37 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2020-04-08T10:35:05+02:00 (6 years ago)
Author:
didier2020
Comment:

rule mapcss implementation (use quotes if the tag name includes special caracters like white space, colons, unicode characters, etc)

Legend:

Unmodified
Added
Removed
Modified
  • Rules/FranceSpecificRules

    v36 v37  
    137137}
    138138
    139 way.major_road[nat_ref:backward][operator][inside("FR")] {
     139way.major_road["nat_ref:backward"][operator][inside("FR")] {
    140140    throwWarning: tr("{0} must be a link road ", "{1.tag}");
    141141    group: tr("validation rules nat_ref in France");
     
    144144}
    145145
    146 way.major_road[nat_ref:forward][operator][inside("FR")] {
     146way.major_road["nat_ref:forward"][operator][inside("FR")] {
    147147    throwWarning: tr("{0} must be a link road", "{1.tag}");
    148148    group: tr("validation rules nat_ref in France");
     
    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]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
     153way.link_road[nat_ref][nat_ref!~/([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])$/][operator!="VILLE DE PARIS"][inside("FR")] {
    154154    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    155155    group: tr("validation rules nat_ref in France");
     
    159159
    160160/* tag nat_ref is well formed on roundabout*/
    161 way.major_road[nat_ref][junction=roundabout][nat_ref!~/([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")] {
     161way.major_road[nat_ref][nat_ref!~/([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])$/][junction=roundabout][inside("FR")] {
    162162    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    163163    group: tr("validation rules nat_ref in France");
     
    167167
    168168/* tag nat_ref is well formed specific Paris*/
    169 way.link_road[nat_ref][operator="VILLE DE PARIS"][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])$/][inside("FR")] {
     169way.link_road[nat_ref][nat_ref!~/75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])$/][operator="VILLE DE PARIS"][inside("FR")] {
    170170    throwWarning: tr("{0} is not a valid reference (Paris)", "{1.tag}");
    171171    group: tr("validation rules nat_ref in France");
     
    174174}
    175175
    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")] {
     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]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
    177177    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    178178    group: tr("validation rules nat_ref in France");
     
    181181}
    182182
    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")] {
     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]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")] {
    184184    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    185185    group: tr("validation rules nat_ref in France");
     
    194194}
    195195
    196 way[highway][nat_ref:forward][!operator][inside("FR")] {
     196way[highway]["nat_ref:forward"][!operator][inside("FR")] {
    197197    throwWarning: tr("Missing tag operator with nat_ref");
    198198    group: tr("validation rules nat_ref in France");
     
    200200}
    201201
    202 way[highway][nat_ref:backward][!operator][inside("FR")] {
     202way[highway]["nat_ref:backward"][!operator][inside("FR")] {
    203203    throwWarning: tr("Missing tag operator with nat_ref");
    204204    group: tr("validation rules nat_ref in France");
     
    206206}
    207207
    208 way.link_road[nat_ref:forward][oneway=~/^(yes|1|-1)$/][inside("FR")] {
     208way.link_road["nat_ref:forward"][oneway=~/^(yes|1|-1)$/][inside("FR")] {
    209209    throwWarning: tr("{0} no tag forward if oneway", "{2.tag}");
    210210    group: tr("validation rules nat_ref in France");
     
    212212}
    213213
    214 way.link_road[nat_ref:backward][oneway=~/^(yes|1|-1)$/][inside("FR")] {
     214way.link_road["nat_ref:backward"][oneway=~/^(yes|1|-1)$/][inside("FR")] {
    215215    throwWarning: tr("{0} no tag backward if oneway", "{2.tag}");
    216216    group: tr("validation rules nat_ref in France");