Changeset 15016 in josm for trunk/data/validator


Ignore:
Timestamp:
2019-04-22T19:12:49+02:00 (6 years ago)
Author:
Klumbumbus
Message:

fix #17025 - warn about "node connects highway and building" too if

  • the suspect node is the first and/or last node of the building
  • the suspect node is the first and last node of a closed highway

(patch by GerdP an Klumbumbus)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/geometry.mapcss

    r14861 r15016  
    132132}
    133133
    134 /* #14395 */
    135 way >[index=1] node,
    136 way >[index=-1] node {
    137   set first_last_node;
    138 }
     134/* #14395, #17025 */
    139135way[highway][area!=yes][!tunnel][!covered] > node {
    140136  set node_in_highway;
    141137}
    142 way[building][building!=no] > node.node_in_highway!.first_last_node {
     138way[highway][area!=yes][!tunnel][!covered]:closed > node {
     139  set node_in_closed_highway;
     140}
     141way[highway][area!=yes][!tunnel][!covered] >[index=1] node,
     142way[highway][area!=yes][!tunnel][!covered] >[index=-1] node {
     143  set first_last_highway_node;
     144}
     145way[building][building!=no] > node.node_in_closed_highway,
     146way[building][building!=no] > node.node_in_highway!.first_last_highway_node {
    143147  throwWarning: tr("node connects highway and building");
    144148}
     
    281285  throwOther: tr("{0} node connected to a highway", "{1.tag}");
    282286}
     287way >[index=1] node,
     288way >[index=-1] node {
     289  set first_last_node;
     290}
    283291way[highway] > node[amenity][!entrance][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking|bus_station|car_wash|ferry_terminal|weighbridge|taxi|toilets)$/],
    284292way[highway] > node[building][!entrance],
Note: See TracChangeset for help on using the changeset viewer.