Opened 2 years ago

Last modified 2 years ago

#23252 closed defect

[patch] Ignore line_management=transition|termination in UnconnectedPower test — at Version 1

Reported by: gaben Owned by: team
Priority: minor Milestone: 23.11
Component: Core Version:
Keywords: template_report power line_management Cc: francois.lacombe

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Load the test file
  2. Validate the data

What is the expected result?

No warning, as the end nodes are not meant to be directly connected

What happens instead?

Three warnings.

Please provide any additional information below. Attach a screenshot if possible.

Key:line_management

  • src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

     
    201201
    202202        @Override
    203203        protected boolean ignoreUnconnectedEndNode(Node n) {
    204             return n.hasTag("power", "terminal") || n.hasTag("location:transition", "yes");
     204            return n.hasTag("power", "terminal") || n.hasTag("location:transition", "yes") || n.hasTag("line_management", "transition", "termination");
    205205        }
    206206    }
Revision:18882
Is-Local-Build:true
Build-Date:2023-10-29 20:41:39

Change History (2)

by gaben, 2 years ago

Attachment: power_endnode.osm added

comment:1 by gaben, 2 years ago

Description: modified (diff)

add wiki link

Note: See TracTickets for help on using tickets.