Changeset 10028 in josm for trunk/data/validator


Ignore:
Timestamp:
2016-03-22T21:10:27+01:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #12577 - Add validator warning for connecting nodes between power lines and non-related features

File:
1 edited

Legend:

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

    r10026 r10028  
    229229way[highway] > node[shop][!entrance],
    230230way[highway] > node[tourism][!entrance][tourism!=viewpoint] {
    231         throwWarning: tr("{0} node connected to a highway", "{0.key}");
     231  throwWarning: tr("{0} node connected to a highway", "{0.key}");
    232232}
    233233
     
    254254  throwWarning: tr("Too large building");
    255255}
     256
     257/* #12577 */
     258way[power=line] > node,
     259way[power=minor_line] > node,
     260way[power=cable] > node {
     261  set node_in_power_way;
     262way[!power][!building] > node.node_in_power_way {
     263  throwWarning: tr("Node connects a power line or cable with an object which is not related to the power infrastructure.");
     264}
Note: See TracChangeset for help on using the changeset viewer.