Changeset 17105 in josm for trunk/resources/data/validator


Ignore:
Timestamp:
2020-10-07T20:43:06+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #17498 - Warn about bicycle=no and cycleway="something positive" (patch by Famlam, added none in the rules and some asserts from the linked osmose implementation)

Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r17091 r17105  
    854854  assertNoMatch: "way footway=sidewalk abandoned:highway=unclassified";
    855855}
     856
     857/* #17498 */
     858way[bicycle][/^cycleway(:|$)/][!/^bicycle:/][bicycle=~/^(no|none|use_sidepath)$/][/^cycleway(:|$)/!~/^(no|none|separate)$/] {
     859  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     860  group: tr("suspicious tag combination");
     861  assertMatch: "way bicycle=no cycleway=track";
     862  assertMatch: "way bicycle=use_sidepath cycleway=lane";
     863  assertMatch: "way bicycle=use_sidepath cycleway:left=lane";
     864  assertNoMatch: "way bicycle=use_sidepath cycleway=no";
     865  assertNoMatch: "way bicycle=use_sidepath bicycle:backward=yes cycleway:left=lane"; /* instead of :backward, could also be :forward or :conditional */
     866  assertNoMatch: "way bicycle=no cycleway:right=no";
     867  assertNoMatch: "way bicycle=use_sidepath cycleway:left=none";
     868  assertNoMatch: "way highway=cycleway cycleway=separate";
     869  assertNoMatch: "way highway=residential bicycle=use_sidepath";
     870}
  • trunk/resources/data/validator/geometry.mapcss

    r17088 r17105  
    145145}
    146146way[building][building!=no] > node[!entrance].node_in_closed_highway {
    147   set node_connects_highway_and_building; /* avoids duplicate warnings with folowing rule */
     147  set node_connects_highway_and_building; /* avoids duplicate warnings with following rule */
    148148  throwWarning: tr("node connects highway and building");
    149149}
Note: See TracChangeset for help on using the changeset viewer.