| [6548] | 1 | *[access][highway=proposed],
|
|---|
| [14918] | 2 | *[motor_vehicle?][!vehicle][!access][bicycle_road!=yes][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|unclassified|residential|service|living_street)$/],
|
|---|
| [6698] | 3 | *[bridge=no],
|
|---|
| [6788] | 4 | *[building=no],
|
|---|
| [6760] | 5 | *[elevation="0"],
|
|---|
| [6548] | 6 | *[layer="0"] {
|
|---|
| 7 | /* see #9365 - Useless tag layer=0 */
|
|---|
| 8 | throwWarning: tr("{0} is unnecessary", "{0.tag}");
|
|---|
| [11153] | 9 | group: tr("unnecessary tag");
|
|---|
| [6548] | 10 | fixRemove: "{0.key}";
|
|---|
| 11 | assertMatch: "way layer=0";
|
|---|
| [6698] | 12 | assertMatch: "way bridge=no";
|
|---|
| [6548] | 13 | assertMatch: "way highway=proposed access=no";
|
|---|
| [14918] | 14 | assertMatch: "way highway=motorway motor_vehicle=yes";
|
|---|
| 15 | assertNoMatch: "way highway=motorway access=no motor_vehicle=yes";
|
|---|
| [6548] | 16 | }
|
|---|
| 17 |
|
|---|
| [6876] | 18 | area:closed[amenity ][area?][!highway],
|
|---|
| [6778] | 19 | area:closed[building][area?],
|
|---|
| [6929] | 20 | area:closed[landuse ][area?][!highway],
|
|---|
| [13302] | 21 | area:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway],
|
|---|
| [6778] | 22 | area:closed[natural ][area?],
|
|---|
| 23 | area:closed[shop ][area?] {
|
|---|
| 24 | throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.key}");
|
|---|
| [11153] | 25 | group: tr("unnecessary tag");
|
|---|
| [6778] | 26 | fixRemove: "{2.key}";
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| [13377] | 29 | /* #14256, #15664 */
|
|---|
| 30 | area:closed[highway=rest_area][area?],
|
|---|
| 31 | area:closed[highway=services][area?],
|
|---|
| [11476] | 32 | area:closed[aeroway=aerodrome][area?],
|
|---|
| 33 | area:closed[aeroway=helipad][area?] {
|
|---|
| 34 | throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.tag}");
|
|---|
| 35 | group: tr("unnecessary tag");
|
|---|
| 36 | fixRemove: "{2.key}";
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| [14904] | 39 | /* #9257, #17482 */
|
|---|
| [14942] | 40 | way[foot =~ /^(yes|designated)$/][highway =~ /^(footway|pedestrian)$/][!access],
|
|---|
| [14943] | 41 | way[bicycle =~ /^(yes|designated)$/][highway=cycleway][!vehicle][!access][foot!=designated],
|
|---|
| [14954] | 42 | *[gnis:Class="Populated Place"][place=city],
|
|---|
| 43 | *[gnis:Class="Populated Place"][place=town],
|
|---|
| 44 | *[gnis:Class="Populated Place"][place=village],
|
|---|
| 45 | *[gnis:Class="Populated Place"][place=hamlet],
|
|---|
| [14953] | 46 | *[gnis:Class=Summit][natural=peak] {
|
|---|
| [14901] | 47 | throwWarning: tr("{0} is unnecessary for {1}", "{0.tag}", "{1.tag}");
|
|---|
| 48 | group: tr("unnecessary tag");
|
|---|
| 49 | fixRemove: "{0.key}";
|
|---|
| [14918] | 50 | assertMatch: "way highway=pedestrian foot=designated";
|
|---|
| 51 | assertNoMatch: "way highway=pedestrian access=no foot=designated";
|
|---|
| [14963] | 52 | /* see #17555 assertNoMatch: "node gnis:Class="Populated Place" place=locality";*/
|
|---|
| [14901] | 53 | }
|
|---|
| 54 |
|
|---|
| [6548] | 55 | *[emergency=permissive] {
|
|---|
| 56 | /* see #9458 - emergency=permissive makes no sense */
|
|---|
| [11146] | 57 | throwWarning: tr("{0} makes no sense", "{0.tag");
|
|---|
| [6548] | 58 | fixAdd: "emergency=yes";
|
|---|
| 59 | assertMatch: "way emergency=permissive";
|
|---|
| 60 | assertNoMatch: "way emergency=designated";
|
|---|
| 61 | }
|
|---|
| [6629] | 62 |
|
|---|
| 63 | /* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
|
|---|
| 64 | way >:sameTags node:tagged {
|
|---|
| 65 | throwWarning: tr("Nodes duplicating parent way tags");
|
|---|
| [7258] | 66 | }
|
|---|
| [13075] | 67 |
|
|---|
| 68 | /* #15477 */
|
|---|
| 69 | *[payment:cash][payment:coins][payment:notes] {
|
|---|
| 70 | throwWarning: tr("{0} together with {1} and {2}. Remove {0}.", "{0.key}", "{1.key}", "{2.key}");
|
|---|
| 71 | group: tr("unnecessary tag");
|
|---|
| 72 | fixRemove: "payment:cash";
|
|---|
| [13378] | 73 | }
|
|---|
| 74 |
|
|---|
| 75 | /* see #10346, #15667 */
|
|---|
| 76 | way[waterway][oneway?] {
|
|---|
| 77 | throwWarning: tr("{0} is unnecessary for {1}", "{1.key}", "{0.key}");
|
|---|
| 78 | group: tr("unnecessary tag");
|
|---|
| 79 | fixRemove: "{1.key}";
|
|---|
| 80 | }
|
|---|
| 81 | way[waterway][oneway=-1] {
|
|---|
| 82 | throwWarning: tr("{0} is unnecessary for {1}. The flow direction is defined by the way direction.", "{1.key}", "{0.key}");
|
|---|
| 83 | group: tr("unnecessary tag");
|
|---|
| [14593] | 84 | }
|
|---|
| 85 |
|
|---|
| 86 | /* #15774 */
|
|---|
| 87 | node[emergency=fire_hydrant][fire_hydrant:count=1] {
|
|---|
| 88 | throwWarning: tr("{0} is unnecessary for {1}", "{1.tag}", "{0.tag}");
|
|---|
| 89 | group: tr("unnecessary tag");
|
|---|
| 90 | fixRemove: "{1.key}";
|
|---|
| [14884] | 91 | }
|
|---|
| 92 |
|
|---|
| [14911] | 93 | /* #17100, #17471 */
|
|---|
| [14885] | 94 | *[name][name=~/^(?i)(parking|parkplatz)$/][amenity=parking],
|
|---|
| 95 | *[name][name=~/^(?i)(playground|spielplatz)$/][leisure=playground],
|
|---|
| [14884] | 96 | *[name][name=~/^(?i)(shop)$/][shop][shop!=no],
|
|---|
| [14911] | 97 | *[name][name=~/^(?i)(building)$/][building][building!=no],
|
|---|
| 98 | *[name][name=~/^(?i)(house|rumah)$/][building=house],
|
|---|
| [14884] | 99 | *[name][name=~/^(?i)(kiosk)$/][shop=kiosk],
|
|---|
| [14911] | 100 | *[name][name=~/^(?i)(jalan)$/][highway],
|
|---|
| 101 | *[name][name=~/^(?i)(silo)$/][man_made=silo],
|
|---|
| 102 | *[name][name=~/^(?i)(silo)$/][building=silo],
|
|---|
| [14885] | 103 | *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=graveyard],
|
|---|
| [14911] | 104 | *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=cemetery],
|
|---|
| [14923] | 105 | *[name="АГЗС"][amenity=fuel],
|
|---|
| [14911] | 106 | *[name="АЗС"][amenity=fuel] {
|
|---|
| [14884] | 107 | throwWarning: tr("{0}", "{0.tag}");
|
|---|
| 108 | group: tr("descriptive name");
|
|---|
| 109 | fixRemove: "name";
|
|---|
| 110 | assertMatch: "node name=parking amenity=parking";
|
|---|
| 111 | assertMatch: "node name=Parking amenity=parking";
|
|---|
| 112 | assertNoMatch: "node name=Parking_with_suffix amenity=parking";
|
|---|
| 113 | assertNoMatch: "node name=Megaparking amenity=parking";
|
|---|
| 114 | assertMatch: "relation name=parking amenity=parking type=multipolygon";
|
|---|
| 115 | assertMatch: "relation name=Parking amenity=parking type=multipolygon";
|
|---|
| 116 | assertNoMatch: "way name=parking";
|
|---|
| 117 | assertMatch: "relation name=PLAYGROUND leisure=playground type=multipolygon";
|
|---|
| 118 | assertMatch: "node name=PLaYGrOUNd leisure=playground";
|
|---|
| 119 | assertMatch: "node name=shop shop=whatever";
|
|---|
| 120 | assertNoMatch: "node name=shop shop=no";
|
|---|
| 121 | assertNoMatch: "way name=shop leisure=playground";
|
|---|
| 122 | assertMatch: "way name=building building=yes";
|
|---|
| [14911] | 123 | assertMatch: "way name=building building=house";
|
|---|
| 124 | assertMatch: "way name=Rumah building=house";
|
|---|
| 125 | assertNoMatch: "way name=Rumah building=yes";
|
|---|
| 126 | assertMatch: "way name=house building=house";
|
|---|
| 127 | assertNoMatch: "way name=house building=yes";
|
|---|
| [14884] | 128 | assertMatch: "way name=kiosk building=yes shop=kiosk";
|
|---|
| 129 | assertNoMatch: "way name=kiosk building=yes";
|
|---|
| [14911] | 130 | assertMatch: "way name=silo man_made=silo";
|
|---|
| 131 | assertMatch: "way name=Silo man_made=silo building=silo";
|
|---|
| 132 | assertMatch: "way name=Silo building=silo";
|
|---|
| [14884] | 133 | assertMatch: "way name=cemetery amenity=graveyard";
|
|---|
| 134 | assertMatch: "way name=Cmentarz amenity=graveyard";
|
|---|
| 135 | assertNoMatch: "way name=kiosk amenity=graveyard";
|
|---|
| [14911] | 136 | }
|
|---|
| 137 | *[name][name=~/^(?i)(house|rumah)$/][building][building!=house][building!=no] {
|
|---|
| 138 | throwWarning: tr("{0}", "{0.tag}");
|
|---|
| 139 | group: tr("descriptive name");
|
|---|
| 140 | /* without fixRemove to avoid possible information loss */
|
|---|
| 141 | assertNoMatch: "way name=building building=yes";
|
|---|
| 142 | assertNoMatch: "way name=building building=house";
|
|---|
| 143 | assertNoMatch: "way name=Rumah building=house";
|
|---|
| 144 | assertMatch: "way name=Rumah building=yes";
|
|---|
| 145 | assertNoMatch: "way name=house building=house";
|
|---|
| 146 | assertMatch: "way name=house building=yes";
|
|---|
| 147 | }
|
|---|