Ticket #21285: josm_21285.patch

File josm_21285.patch, 2.6 KB (added by skyper, 4 years ago)

patch file

  • resources/data/validator/relations.mapcss

     
    88
    99/* from http://wiki.openstreetmap.org/wiki/Types_of_relation */
    1010/* see also #9071 */
    11 relation[type=route][!route],
    12 relation[type=route_master][!route_master],
    1311relation[type=boundary][!boundary][!disused:boundary],
     12relation[type=building][!building],
     13relation[type=destination_sign][!destination],
     14relation[type=enforcement][!enforcement],
    1415relation[type=public_transport][!public_transport],
    15 relation[type=waterway][!waterway],
    16 relation[type=enforcement][!enforcement] {
     16relation[type=route][!route],
     17relation[type=route_master][!route_master],
     18relation[type=waterway][!waterway] {
    1719  throwWarning: tr("{0} relation without {0} tag", "{1.key}");
    1820  group: tr("missing tag");
    1921  assertMatch: "relation type=route";
     
    4345/* #15208, #16242 */
    4446relation[type=route][route=mtb    ] > way[bicycle=no],
    4547relation[type=route][route=bicycle] > way[bicycle=no],
     48relation[type=route][route=mtb    ] > way[bicycle=private],
     49relation[type=route][route=bicycle] > way[bicycle=private],
    4650relation[type=route][route=mtb    ] > way[bicycle=use_sidepath],
    47 relation[type=route][route=bicycle] > way[bicycle=use_sidepath] {
    48   throwWarning: tr("way with {0} is part of a bicycle route relation", "{0.tag}");
    49 }
    50  No newline at end of file
     51relation[type=route][route=bicycle] > way[bicycle=use_sidepath],
     52relation[type=route][route=fitness_trail] > way[foot=no],
     53relation[type=route][route=hiking       ] > way[foot=no],
     54relation[type=route][route=running      ] > way[foot=no],
     55relation[type=route][route=walking      ] > way[foot=no],
     56relation[type=route][route=fitness_trail] > way[foot=private],
     57relation[type=route][route=hiking       ] > way[foot=private],
     58relation[type=route][route=running      ] > way[foot=private],
     59relation[type=route][route=walking      ] > way[foot=private],
     60relation[type=route][route=fitness_trail] > way[foot=use_sidepath],
     61relation[type=route][route=hiking       ] > way[foot=use_sidepath],
     62relation[type=route][route=running      ] > way[foot=use_sidepath],
     63relation[type=route][route=walking      ] > way[foot=use_sidepath],
     64relation[type=route][route=horse] > way[horse=no],
     65relation[type=route][route=horse] > way[horse=private],
     66relation[type=route][route=horse] > way[horse=use_sidepath] {
     67  throwWarning: tr("way with {0} is part of a {1} route relation", "{0.tag}", "{0.key}");
     68}