Ignore:
Timestamp:
2016-11-10T22:25:00+01:00 (8 years ago)
Author:
Klumbumbus
Message:
  • fix #13877 - warn about linear waterway tags used on areas (modified patch by naoliv)
  • fix #13879 - warn about values of tracktype other than grade1|grade2|grade3|grade4|grade5
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/deprecated.mapcss

    r11159 r11232  
    10761076  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
    10771077}
     1078
     1079/* #13879 */
     1080way[tracktype=1] {
     1081  throwError: tr("{0}", "{0.tag}");
     1082  suggestAlternative: "tracktype=grade1";
     1083  group: tr("misspelled value");
     1084  fixAdd: "tracktype=grade1";
     1085}
     1086way[tracktype=2] {
     1087  throwError: tr("{0}", "{0.tag}");
     1088  suggestAlternative: "tracktype=grade2";
     1089  group: tr("misspelled value");
     1090  fixAdd: "tracktype=grade2";
     1091}
     1092way[tracktype=3] {
     1093  throwError: tr("{0}", "{0.tag}");
     1094  suggestAlternative: "tracktype=grade3";
     1095  group: tr("misspelled value");
     1096  fixAdd: "tracktype=grade3";
     1097}
     1098way[tracktype=4] {
     1099  throwError: tr("{0}", "{0.tag}");
     1100  suggestAlternative: "tracktype=grade4";
     1101  group: tr("misspelled value");
     1102  fixAdd: "tracktype=grade4";
     1103}
     1104way[tracktype=5] {
     1105  throwError: tr("{0}", "{0.tag}");
     1106  suggestAlternative: "tracktype=grade5";
     1107  group: tr("misspelled value");
     1108  fixAdd: "tracktype=grade5";
     1109}
     1110way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
     1111  throwError: tr("wrong value: {0}", "{0.tag}");
     1112  suggestAlternative: "tracktype=grade1";
     1113  suggestAlternative: "tracktype=grade2";
     1114  suggestAlternative: "tracktype=grade3";
     1115  suggestAlternative: "tracktype=grade4";
     1116  suggestAlternative: "tracktype=grade5";
     1117}
Note: See TracChangeset for help on using the changeset viewer.