Changeset 11337 in josm


Ignore:
Timestamp:
2016-11-28T21:11:03+01:00 (7 years ago)
Author:
Klumbumbus
Message:
  • fix #14057 - validate direction values, deprecate direction=up/down in favor of incline=up/down
  • deprecate amenity=advertising in favor of advertising=*
  • don't warn about "highway without a reference" if destination:ref is present
Location:
trunk/data/validator
Files:
3 edited

Legend:

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

    r11263 r11337  
    11251125  fixChangeKey: "lock => lockable";
    11261126}
     1127
     1128*[amenity=advertising][!advertising] {
     1129  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1130  suggestAlternative: "advertising=*";
     1131  group: tr("deprecated tagging");
     1132}
     1133*[amenity=advertising][advertising] {
     1134  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1135  suggestAlternative: "advertising=*";
     1136  group: tr("deprecated tagging");
     1137  fixRemove: "amenity";
     1138}
     1139
     1140way[direction=up][incline=up],
     1141way[direction=down][incline=down],
     1142way[direction=up][!incline],
     1143way[direction=down][!incline] {
     1144  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1145  suggestAlternative: "incline";
     1146  group: tr("deprecated tagging");
     1147  fixChangeKey: "direction => incline";
     1148}
     1149way[direction=up][incline][incline!=up],
     1150way[direction=down][incline][incline!=down] {
     1151  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1152  suggestAlternative: "incline";
     1153  group: tr("deprecated tagging");
     1154}
  • trunk/data/validator/highway.mapcss

    r11146 r11337  
    5353}
    5454
    55 way.major_road[!ref] {
     55way.major_road[!ref][!destination:ref] {
    5656  throwOther: tr("highway without a reference");
    5757  group: tr("missing tag");
    5858  assertMatch: "way highway=primary";
    5959  assertNoMatch: "way highway=primary ref=123";
     60  assertNoMatch: "way highway=primary destination:ref=123";
    6061}
    6162
  • trunk/data/validator/ignoretags.cfg

    r11133 r11337  
    118118E:cables
    119119E:circuits
     120E:direction
    120121;
    121122; Ignore valid and semi-valid keys that end with...
Note: See TracChangeset for help on using the changeset viewer.