Changes between Version 40 and Version 41 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2020-04-10T07:47:45+02:00 (6 years ago)
Author:
didier2020
Comment:

regle pour node et fusion règle forward,backward

Legend:

Unmodified
Added
Removed
Modified
  • Rules/FranceSpecificRules

    v40 v41  
    9696}
    9797
     98
     99/* Select milestone nodes */
     100node[highway=milestone][nat_ref] {
     101  set pr_node;
     102}
     103
     104
    98105/* 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")] {
     106node.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")] {
    100107    throwWarning: tr("{0} is not a milestone valid reference RIU", "{1.tag}");
    101108    group: tr("validation rules highway milestone");
     
    106113
    107114/* missing ref for milestone */
    108 node[highway=milestone][nat_ref][!ref][inside("FR")] {
     115node.pr_node[nat_ref][!ref][inside("FR")] {
    109116    throwWarning: tr("missing ref");
    110117    group: tr("validation rules highway milestone");
     
    113120
    114121/* missing distance for milestone */
    115 node[highway=milestone][nat_ref][!distance][inside("FR")] {
     122node.pr_node[nat_ref][!distance][inside("FR")] {
    116123    throwWarning: tr("missing distance");
    117124    group: tr("validation rules highway milestone");
     
    174181}
    175182
    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")] {
     183way.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")],
     184way.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")]{
    177185    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    178186    group: tr("validation rules nat_ref in France");
    179187    -osmoseTags: list("ref", "highway");
    180188    -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");
    187189}
    188190
     
    194196}
    195197
    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 
     198way[highway]["nat_ref:forward"][!operator][inside("FR")],
    202199way[highway]["nat_ref:backward"][!operator][inside("FR")] {
    203200    throwWarning: tr("Missing tag operator with nat_ref");
     
    206203}
    207204
    208 way.link_road["nat_ref:forward"][oneway=~/^(yes|1|-1)$/][inside("FR")] {
     205way.link_road["nat_ref:forward"][oneway=~/^(yes|1|-1)$/][inside("FR")],
     206way.link_road["nat_ref:backward"][oneway=~/^(yes|1|-1)$/][inside("FR")] {
    209207    throwWarning: tr("{0} no tag forward if oneway", "{2.tag}");
    210208    group: tr("validation rules nat_ref in France");
     
    212210}
    213211
    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 
    220212}}}