Changeset 6538 in josm for trunk/data/validator/relation.mapcss
- Timestamp:
- 2013-12-26T15:19:31+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/relation.mapcss
r6537 r6538 8 8 9 9 /* from http://wiki.openstreetmap.org/wiki/Types_of_relation */ 10 relation[type=route][!route] { 11 throwWarning: tr("{0} relation without {0} tag", "route"); 10 /* see also #9071 */ 11 relation[type=route][!route], 12 relation[type=route_master][!route_master], 13 relation[type=restriction][!restriction], 14 relation[type=boundary][!boundary], 15 relation[type=site][!site], 16 relation[type=public_transport][!public_transport], 17 relation[type=waterway][!waterway], 18 relation[type=enforcement][!enforcement] { 19 throwWarning: tr("{0} relation without {0} tag", "{1.key}"); 12 20 assertMatch: "relation type=route"; 13 21 assertNoMatch: "relation type=route route=train"; 14 }15 16 relation[type=route_master][!route_master] {17 /* see #9071 */18 throwWarning: tr("{0} relation without {0} tag", "route_master");19 22 assertMatch: "relation type=route_master"; 20 23 assertNoMatch: "relation type=route_master route_master=train"; 21 }22 23 relation[type=restriction][!restriction] {24 throwWarning: tr("{0} relation without {0} tag", "restriction");25 24 assertMatch: "relation type=restriction"; 26 25 assertNoMatch: "relation type=restriction restriction=no_left_turn"; 27 }28 29 relation[type=boundary][!boundary] {30 throwWarning: tr("{0} relation without {0} tag", "boundary");31 26 assertMatch: "relation type=boundary"; 32 27 assertNoMatch: "relation type=boundary boundary=administrative"; 33 }34 35 relation[type=site][!site] {36 throwWarning: tr("{0} relation without {0} tag", "site");37 28 assertMatch: "relation type=site"; 38 29 assertNoMatch: "relation type=site site=administrative"; 39 }40 41 relation[type=public_transport][!public_transport] {42 throwWarning: tr("{0} relation without {0} tag", "public_transport");43 30 assertMatch: "relation type=public_transport"; 44 31 assertNoMatch: "relation type=public_transport public_transport=stop_area"; 45 }46 47 relation[type=waterway][!waterway] {48 throwWarning: tr("{0} relation without {0} tag", "waterway");49 32 assertMatch: "relation type=waterway"; 50 33 assertNoMatch: "relation type=waterway waterway=river"; 51 }52 53 relation[type=enforcement][!enforcement] {54 throwWarning: tr("{0} relation without {0} tag", "enforcement");55 34 assertMatch: "relation type=enforcement"; 56 35 assertNoMatch: "relation type=enforcement enforcement=maxspeed";
Note:
See TracChangeset
for help on using the changeset viewer.