Changeset 19212 in josm for trunk/resources


Ignore:
Timestamp:
2024-09-06T12:47:00+02:00 (3 months ago)
Author:
taylor.smock
Message:

Fix #23770: Deprecate cycleway=opposite* family (patch by Famlam)

The cycleway=opposite* family was deprecated in
osmwiki:Proposal:Deprecate_cycleway=opposite_family on 2024-06-22.

This removes the opposite* values from the cycleway tags in defaultpresets.xml
and adds a deprecation warning for them.

Location:
trunk/resources/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r19202 r19212  
    13081308            <link wiki="Bicycle" />
    13091309            <space />
    1310             <combo key="cycleway" text="Cycleway" values_context="cycleway" values="lane,track,opposite_lane,opposite_track,opposite,share_busway,shared_lane,separate" match="key" />
     1310            <combo key="cycleway" text="Cycleway" values_context="cycleway" values="lane,track,share_busway,shared_lane,separate" match="key" />
    13111311            <combo key="cycleway:left" text="Cycleway left" values_context="cycleway" values="lane,track,share_busway,shared_lane,separate" match="key" />
    13121312            <combo key="cycleway:right" text="Cycleway right" values_context="cycleway" values="lane,track,share_busway,shared_lane,separate" match="key" />
  • trunk/resources/data/validator/deprecated.mapcss

    r19204 r19212  
    25522552}
    25532553
     2554way[cycleway=opposite],
     2555way[cycleway:left=opposite],
     2556way[cycleway:right=opposite],
     2557way[cycleway:both=opposite] {
     2558  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2559  group: tr("deprecated tagging");
     2560  fixAdd: "oneway:bicycle=no";
     2561  fixRemove: "{0.key}";
     2562  /* No automated addition of e.g. cycleway:both=no for cycleway=opposite as it may already be tagged with e.g. cycleway:left=lane */
     2563}
     2564way[cycleway:left][cycleway:left^=opposite_],
     2565way[cycleway:right][cycleway:right^=opposite_] {
     2566  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2567  group: tr("deprecated tagging");
     2568  /* No fix: unambiguous definition */
     2569}
     2570way[cycleway][cycleway^=opposite_]:righthandtraffic {
     2571  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2572  group: tr("deprecated tagging");
     2573  suggestAlternative: "oneway:bicycle=no + cycleway:right=* + cycleway:left=* + cycleway:left:oneway=-1";
     2574}
     2575way[cycleway][cycleway^=opposite_]!:righthandtraffic {
     2576  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2577  group: tr("deprecated tagging");
     2578  suggestAlternative: "oneway:bicycle=no + cycleway:right=* + cycleway:left=* + cycleway:right:oneway=-1";
     2579}
     2580
    25542581/* When tags are deprecated they should be added to ignoretags.cfg too. */
  • trunk/resources/data/validator/ignoretags.cfg

    r19210 r19212  
    257257K:landform=dune_system
    258258K:noaddress=yes
     259K:cycleway=opposite
     260K:cycleway=opposite_lane
     261K:cycleway=opposite_track
    259262;
    260263; Highway Key/Value Pairs
Note: See TracChangeset for help on using the changeset viewer.