Changeset 11232 in josm for trunk/data/validator


Ignore:
Timestamp:
2016-11-10T22:25:00+01:00 (3 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
Location:
trunk/data/validator
Files:
2 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}
  • trunk/data/validator/geometry.mapcss

    r11146 r11232  
    297297    throwWarning: tr("{0} should be on the node where {1} and {2} intersect", "ford", "highway", "waterway");
    298298}
     299/* #13877 */
     300area:closed[waterway = canal][area!=no],
     301area:closed[waterway = drain][area!=no],
     302area:closed[waterway = ditch][area!=no],
     303area:closed[waterway = stream][area!=no],
     304area:closed[waterway = river][area!=no] {
     305  throwWarning: tr("{0} is the tag for the linear waterway. To tag the water area use {1} + {2} instead.", "{1.tag}", "natural=water", "water=*");
     306}
Note: See TracChangeset for help on using the changeset viewer.