Changeset 16501 in josm


Ignore:
Timestamp:
2020-05-26T21:30:05+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19010 - Warn about suspicious combinations of "cycleway/sidewalk" with "cycleway/sidewalk:left/right" (patch by skyper)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r16258 r16501  
    467467}
    468468
    469 /* #11389 */
     469/* #11389, #19010 */
    470470way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] {
    471471  throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
     
    483483  fixRemove: "maxspeed:backward";
    484484}
    485 way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed {
     485way["cycleway:left"=*"cycleway:right"][!cycleway] {
     486  throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
     487  suggestAlternative: "cycleway";
     488  group: tr("suspicious tag combination");
     489  fixChangeKey: "cycleway:left=>cycleway";
     490  fixRemove: "cycleway:right";
     491}
     492way["cycleway:left"=*cycleway]["cycleway:right"=*cycleway][cycleway] {
     493  throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
     494  set AllSameCycleway;
     495  suggestAlternative: "cycleway";
     496  group: tr("suspicious tag combination");
     497  fixRemove: "cycleway:left";
     498  fixRemove: "cycleway:right";
     499}
     500way["sidewalk:left"=*"sidewalk:right"][!sidewalk] {
     501  throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
     502  suggestAlternative: "sidewalk";
     503  group: tr("suspicious tag combination");
     504  fixChangeKey: "sidewalk:left=>sidewalk";
     505  fixRemove: "sidewalk:right";
     506}
     507way["sidewalk:left"=*sidewalk]["sidewalk:right"=*sidewalk][sidewalk] {
     508  throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
     509  set AllSameSidewalk;
     510  suggestAlternative: "sidewalk";
     511  group: tr("suspicious tag combination");
     512  fixRemove: "sidewalk:left";
     513  fixRemove: "sidewalk:right";
     514}
     515way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed,
     516way["cycleway:left"]["cycleway:right"][cycleway]!.AllSameCycleway,
     517way["sidewalk:left"]["sidewalk:right"][sidewalk]!.AllSameSidewalk {
    486518  throwWarning: tr("{0} and {1} together with {2} and conflicting values", "{0.key}", "{1.key}", "{2.key}");
    487519  group: tr("suspicious tag combination");
    488520}
    489521way["maxspeed:forward"][maxspeed][!"maxspeed:backward"],
    490 way["maxspeed:backward"][maxspeed][!"maxspeed:forward"] {
     522way["maxspeed:backward"][maxspeed][!"maxspeed:forward"],
     523way["cycleway:left"][cycleway][!"cycleway:right"],
     524way["cycleway:right"][cycleway][!"cycleway:left"],
     525way["sidewalk:left"][sidewalk][!"sidewalk:right"],
     526way["sidewalk:right"][sidewalk][!"sidewalk:left"] {
    491527  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
    492528  group: tr("suspicious tag combination");
Note: See TracChangeset for help on using the changeset viewer.