1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
/* relation types */
relation[!type] {
throwError: tr("relation without type");
assertMatch: "relation name=Foo";
assertNoMatch: "relation type=route name=Foo";
}
/* from http://wiki.openstreetmap.org/wiki/Types_of_relation */
/* see also #9071 */
relation[type=route][!route],
relation[type=route_master][!route_master],
relation[type=restriction][!restriction],
relation[type=boundary][!boundary],
relation[type=public_transport][!public_transport],
relation[type=waterway][!waterway],
relation[type=enforcement][!enforcement] {
throwWarning: tr("{0} relation without {0} tag", "{1.key}");
assertMatch: "relation type=route";
assertNoMatch: "relation type=route route=train";
assertMatch: "relation type=route_master";
assertNoMatch: "relation type=route_master route_master=train";
assertMatch: "relation type=restriction";
assertNoMatch: "relation type=restriction restriction=no_left_turn";
assertMatch: "relation type=boundary";
assertNoMatch: "relation type=boundary boundary=administrative";
assertNoMatch: "relation type=site site=administrative";
assertMatch: "relation type=public_transport";
assertNoMatch: "relation type=public_transport public_transport=stop_area";
assertMatch: "relation type=waterway";
assertNoMatch: "relation type=waterway waterway=river";
assertMatch: "relation type=enforcement";
assertNoMatch: "relation type=enforcement enforcement=maxspeed";
}
|