Ticket #23932: cycleway_buffer_2.patch

File cycleway_buffer_2.patch, 2.8 KB (added by huntertur, 4 months ago)

cycleway:buffer patch, 2024-09-21 version

  • resources/data/defaultpresets.xml

     
    13231323            <space />
    13241324            <optional text="Cycleway Lane Attributes">
    13251325                <combo key="cycleway:both:lane" text="Lane type (both)" values_context="cycleway" values="advisory,exclusive"/>
     1326                <check key="cycleway:both:buffer" text="Has buffer between automobiles and cycleway (both)" />
    13261327                <combo key="cycleway:left:lane" text="Lane type (left)" values_context="cycleway" values="advisory,exclusive"/>
     1328                <check key="cycleway:left:buffer" text="Has buffer between automobiles and cycleway (left)" />
    13271329                <combo key="cycleway:right:lane" text="Lane type (right)" values_context="cycleway" values="advisory,exclusive"/>
     1330                <check key="cycleway:right:buffer" text="Has buffer between automobiles and cycleway (right)" />
    13281331            </optional>
    13291332            <optional text="Edit Highway Attributes:">
    13301333                <combo key="highway" text="Highway" values="motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,unclassified,residential,living_street,service,bus_guideway,construction" values_context="Highway" values_sort="false" />
  • resources/data/validator/combinations.mapcss

     
    10651065  throwWarning: tr("{0} is lower or equal to {1} on {2}", "{1.key}", "{2.key}", "{0.key}");
    10661066  group: tr("suspicious tag combination");
    10671067}
     1068
     1069/* #23932 */
     1070way[cycleway:right=separate][cycleway:right:buffer],
     1071way[cycleway:left=separate][cycleway:left:buffer],
     1072way[cycleway:both=separate][cycleway:both:buffer],
     1073way[cycleway=separate][cycleway:buffer],
     1074way[highway=cycleway][cycleway:buffer] {
     1075  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     1076  group: tr("suspicious tag combination");
     1077  assertMatch: "way cycleway:right=separate cycleway:right:buffer=yes";
     1078  assertMatch: "way cycleway:left=separate cycleway:left:buffer=no";
     1079  assertMatch: "way cycleway:both=separate cycleway:both:buffer=yes";
     1080  assertMatch: "way cycleway=separate cycleway:buffer=no";
     1081  assertMatch: "way highway=cycleway cycleway:buffer=yes";
     1082  assertNoMatch: "way cycleway:right=lane cycleway:right:buffer=no";
     1083  assertNoMatch: "way cycleway:left=lane cycleway:left:buffer=yes";
     1084  assertNoMatch: "way cycleway:both=lane cycleway:both:buffer=no";
     1085  assertNoMatch: "way cycleway=lane cycleway:buffer=yes";
     1086  assertNoMatch: "way highway=cycleway";
     1087}