Ignore:
Timestamp:
2021-01-18T13:47:54+01:00 (4 months ago)
Author:
Klumbumbus
Message:

fix #20326 - Support railway:position instead of distance for railway=milestone

File:
1 edited

Legend:

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

    r17284 r17466  
    670670/* #11330, #18642 */
    671671*[/^.$/],
    672 node[/^..$/],
     672node[/^..$/][!kp][!pk],
    673673way[/^..$/][route=ferry][!to],
    674674way[/^..$/][route!=ferry],
     
    681681  assertMatch: "node fo=bar";
    682682  assertMatch: "node f=b";
     683  assertNoMatch: "node kp=5"; /* already has a deprecated warning */
     684  assertNoMatch: "node pk=7"; /* already has a deprecated warning */
    683685}
    684686
     
    725727}
    726728
    727 /* #8717 */
    728 *[kp][highway=milestone],
    729 *[kp][railway=milestone],
    730 *[kp][waterway=milestone] {
     729/* #8717, #20326 */
     730*[kp][railway!=milestone] {
    731731  throwWarning: tr("{0} is deprecated", "{0.key}");
    732732  suggestAlternative: "distance";
     
    734734  fixChangeKey: "kp => distance";
    735735}
    736 *[pk][highway=milestone],
    737 *[pk][railway=milestone],
    738 *[pk][waterway=milestone] {
     736*[pk][railway!=milestone] {
    739737  throwWarning: tr("{0} is deprecated", "{0.key}");
    740738  suggestAlternative: "distance";
    741739  group: tr("deprecated tagging");
    742740  fixChangeKey: "pk => distance";
     741}
     742*[kp][railway=milestone] {
     743  throwWarning: tr("{0} is deprecated", "{0.key}");
     744  suggestAlternative: "railway:position";
     745  group: tr("deprecated tagging");
     746  fixChangeKey: "kp => railway:position";
     747}
     748*[pk][railway=milestone] {
     749  throwWarning: tr("{0} is deprecated", "{0.key}");
     750  suggestAlternative: "railway:position";
     751  group: tr("deprecated tagging");
     752  fixChangeKey: "pk => railway:position";
     753}
     754*[distance][railway=milestone] {
     755  throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
     756  suggestAlternative: "railway:position";
     757  group: tr("deprecated tagging");
     758  fixChangeKey: "distance => railway:position";
    743759}
    744760
Note: See TracChangeset for help on using the changeset viewer.