Changeset 18324 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-11-20T00:34:04+01:00 (3 years ago)
Author:
Klumbumbus
Message:

fix #17034 - Add power=connection (partly patch by gaben, icon self created PD and CC0 licensed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java

    r17111 r18324  
    4545    /** Values for {@code power} key interpreted as allowed power items */
    4646    static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator", "switchgear",
    47             "portal", "terminal", "insulator");
     47            "portal", "terminal", "insulator", "connection");
    4848
    4949    private final Set<Node> badConnections = new LinkedHashSet<>();
     
    5656     */
    5757    public PowerLines() {
    58         super(tr("Power lines"), tr("Checks for nodes in power lines that do not have a power=tower/pole tag."));
     58        super(tr("Power lines"), tr("Checks for nodes in power lines that do not have a power=tower/pole/connection tag."));
    5959    }
    6060
     
    122122            if (!isInPowerStation(n)) {
    123123                errors.add(TestError.builder(this, Severity.WARNING, POWER_LINES)
    124                         .message(tr("Missing power tower/pole within power line"))
     124                        .message(tr("Missing power tower/pole/connection within power line"))
    125125                        .primitives(n)
    126126                        .build());
Note: See TracChangeset for help on using the changeset viewer.