Ignore:
Timestamp:
2024-04-27T08:58:28+02:00 (13 months ago)
Author:
GerdP
Message:

fix #21881: Add a check for loops in directional waterways
Patch by gaben, slightly modified

  • implements Tarjan algorithm to find strongly connected components
  • new preference validator.CycleDetector.directionalWaterways contains the list of waterway values which should be checked
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/WaySegment.java

    r17897 r19062  
    33
    44/**
    5  * A segment consisting of 2 consecutive nodes out of a way.
     5 * A segment consisting of two consecutive nodes out of a way.
    66 */
    77public final class WaySegment extends IWaySegment<Node, Way> {
     
    3737            endIndex--;
    3838        }
    39         throw new IllegalArgumentException("Node pair is not part of way!");
     39        throw new IllegalArgumentException("The node pair is not consecutive part of the way!");
    4040    }
    4141
Note: See TracChangeset for help on using the changeset viewer.