Ignore:
Timestamp:
2017-02-25T03:14:20+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14402 - add blacklist for leisure area values to avoid false positives - improve globally the detection of keys/tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java

    r11587 r11608  
    2929
    3030    static Direction roundaboutType(Way w) {
    31         if (w != null && "roundabout".equals(w.get("junction"))) {
     31        if (w != null && w.hasTag("junction", "roundabout")) {
    3232            int nodesCount = w.getNodesCount();
    3333            if (nodesCount > 2 && nodesCount < 200) {
     
    3636                Node n3 = w.getNode(2);
    3737                if (n1 != null && n2 != null && n3 != null && w.isClosed()) {
    38                     /** do some simple determinant / cross pruduct test on the first 3 nodes
     38                    /** do some simple determinant / cross product test on the first 3 nodes
    3939                        to see, if the roundabout goes clock wise or ccw */
    4040                    EastNorth en1 = n1.getEastNorth();
Note: See TracChangeset for help on using the changeset viewer.