Changes between Version 39 and Version 40 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2020-04-10T06:20:49+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

    v39 v40  
    4242}
    4343
    44 *[amenity=fuel][fuel:octane_95=yes][!fuel:e10][inside("FR")] {
     44*[amenity=fuel]["fuel:octane_95"=yes][!"fuel:e10"][inside("FR")] {
    4545    throwWarning: tr("Does this station still sell SP95, or has it been replaced by the SP95-E10?");
    4646    -osmoseItemClassLevel: "4061/40612/2";
     
    6060
    6161/* #18640 - Discourage contributors to use ref:ERDF:gdo in France. */
    62 *[ref:ERDF:gdo][inside("FR")] {
     62*["ref:ERDF:gdo"][inside("FR")] {
    6363    throwWarning: tr("{0} is deprecated", "{0.tag}");
    6464    suggestAlternative: "ref:FR:gdo";
     
    7070
    7171/* #18640 - ref:FR:gdo validation */
    72 *[ref:FR:gdo][ref:FR:gdo!~/[0-9AB]{5}[A-Z]{1,3}[0-9]{4,}/][inside("FR")] {
     72*["ref:FR:gdo"]["ref:FR:gdo"!~/[0-9AB]{5}[A-Z]{1,3}[0-9]{4,}/][inside("FR")] {
    7373    throwWarning: tr("{0} is invalid", "{0.tag}");
    7474    -osmoseItemClassLevel: "3040/30401/3";
     
    7676}
    7777
    78 *[power=substation][!ref:FR:gdo][ref][operator=~/^(Enedis|GRDF)$/][inside("FR")],
    79 *[power=switch][!ref:FR:gdo][ref][operator=Enedis][inside("FR")] {
     78*[power=substation][!"ref:FR:gdo"][ref][operator=~/^(Enedis|GRDF)$/][inside("FR")],
     79*[power=switch][!"ref:FR:gdo"][ref][operator=Enedis][inside("FR")] {
    8080    throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
    8181    group: tr("missing tag");
     
    8585
    8686/* #18552 - Add validation rules for French telecom references */
    87 *[ref:FR:ARCEP                 ][telecom!=connection_point],
    88 *[ref:FR:ARCEP                 ][telecom:medium!=fibre],
    89 *[ref:FR:Orange                ][telecom:medium!=fibre],
    90 *[ref:FR:SFR                   ][telecom:medium!=fibre],
    91 *[ref:FR:PTT                   ][telecom:medium!=copper] {
     87*["ref:FR:ARCEP"][telecom!=connection_point],
     88*["ref:FR:ARCEP"]["telecom:medium"!=fibre],
     89*["ref:FR:Orange"]["telecom:medium"!=fibre],
     90*["ref:FR:SFR"]["telecom:medium"!=fibre],
     91*["ref:FR:PTT"]["telecom:medium"!=copper] {
    9292    throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
    9393    group: tr("missing tag");
     
    102102    -osmoseItemClassLevel: "3040/30403/3";
    103103    -osmoseTags: list("ref", "highway");
    104     -osmoseAssertNoMatchWithContext: list("node highway=milestone ref=\"A 4\" distance=38 nat_ref=77PR38DC operator=SANEF", "inside=FR");
     104    -osmoseAssertNoMatchWithContext: list("node highway=milestone ref=A4 distance=38 nat_ref=77PR38DC operator=SANEF", "inside=FR");
    105105}
    106106