Changeset 18132 in josm for trunk/resources/data/validator
- Timestamp:
- 2021-08-11T20:32:33+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/multiple.mapcss
r18105 r18132 11 11 } 12 12 13 /* #19419 */ 13 /* Multiple access values, #19419 */ 14 14 node[/^(amenity|barrier|building(:part)?|entrance|(high|rail|water)way|leisure)$/][access *=";"], 15 15 way[/^(amenity|building(:part)?|(high|rail|water)way|water|leisure)$/][access *=";"], … … 64 64 } 65 65 66 /* Multiple access values per direction or lane, #21192 */ 67 way[/^(high|rail|water)way$/][/^access((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 68 way[highway][/^agricultural((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 69 way[highway][/^bdouble((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 70 way[highway][/^bicycle((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 71 way[highway][/^bus((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 72 way[highway][/^carriage((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 73 way[highway][/^emergency((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 74 way[highway][/^foot((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 75 way[highway][/^goods((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 76 way[highway][/^hazmat((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 77 way[highway][/^hgv((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 78 way[highway][/^horse((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 79 way[highway][/^hov((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 80 way[highway][/^mofa((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 81 way[highway][/^moped((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 82 way[highway][/^motor_vehicle((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 83 way[highway][/^motorcar((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 84 way[highway][/^motorcycle((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 85 way[highway][/^psv((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 86 way[highway][/^taxi((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 87 way[highway][/^tourist_bus((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 88 way[highway][/^vehicle((:both_ways)?:(backward|forward)|:both_ways)$/ =~ /;/], 89 way[railway][/^train:(backward|forward)$/ =~ /;/], 90 way[railway][/^tram:(backward|forward)$/ =~ /;/], 91 way[railway][/^subway:(backward|forward)$/ =~ /;/], 92 way[waterway][/^boat:(backward|forward)$/ =~ /;/], 93 way[waterway][/^canoe:(backward|forward)$/ =~ /;/], 94 way[waterway][/^cargo:(backward|forward)$/ =~ /;/], 95 way[waterway][/^motorboat:(backward|forward)$/ =~ /;/], 96 way[waterway][/^passenger:(backward|forward)$/ =~ /;/], 97 way[waterway][/^ship:(backward|forward)$/ =~ /;/] { 98 throwWarning: tr("Multiple values in accces per direction tag"); 99 group: tr("Multiple values in access tag"); 100 suggestAlternative: tr("only one value and additional {0}", ":conditional"); 101 assertMatch: "way highway=trunk bus:both_ways:forward=designated;yes"; 102 assertNoMatch: "way highway=trunk bus:both_ways:forward=designated"; 103 assertNoMatch: "way highway=trunk bus=designated;yes"; 104 } 105 way[highway][/^access:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 106 way[highway][/^agricultural:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 107 way[highway][/^bdouble:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 108 way[highway][/^bicycle:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 109 way[highway][/^bus:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 110 way[highway][/^carriage:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 111 way[highway][/^emergency:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 112 way[highway][/^foot:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 113 way[highway][/^goods:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 114 way[highway][/^hazmat:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 115 way[highway][/^hgv:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 116 way[highway][/^horse:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 117 way[highway][/^hov:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 118 way[highway][/^mofa:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 119 way[highway][/^moped:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 120 way[highway][/^motor_vehicle:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 121 way[highway][/^motorcar:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 122 way[highway][/^motorcycle:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 123 way[highway][/^psv:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 124 way[highway][/^taxi:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 125 way[highway][/^tourist_bus:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/], 126 way[highway][/^vehicle:lanes(:both_ways)?(:(backward|forward))?$/ =~ /;/] { 127 throwWarning: tr("Multiple values in access per lane tag"); 128 group: tr("Multiple values in access tag"); 129 suggestAlternative: tr("only one value and additional {0}", ":conditional"); 130 assertMatch: "way highway=trunk bus:lanes:both_ways:forward=designated;yes|no"; 131 assertNoMatch: "way highway=trunk bus:lanes:both_ways:forward=designated|no"; 132 assertNoMatch: "way highway=trunk bus:both_ways:forward=designated;no"; 133 } 134 66 135 *[source =~ /^(;.*|.*;;.*|.*;)$/], 67 136 *["source:addr" =~ /^(;.*|.*;;.*|.*;)$/],
Note:
See TracChangeset
for help on using the changeset viewer.