Changeset 11608 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java
- Timestamp:
- 2017-02-25T03:14:20+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java
r11587 r11608 29 29 30 30 static Direction roundaboutType(Way w) { 31 if (w != null && "roundabout".equals(w.get("junction"))) {31 if (w != null && w.hasTag("junction", "roundabout")) { 32 32 int nodesCount = w.getNodesCount(); 33 33 if (nodesCount > 2 && nodesCount < 200) { … … 36 36 Node n3 = w.getNode(2); 37 37 if (n1 != null && n2 != null && n3 != null && w.isClosed()) { 38 /** do some simple determinant / cross pr uduct test on the first 3 nodes38 /** do some simple determinant / cross product test on the first 3 nodes 39 39 to see, if the roundabout goes clock wise or ccw */ 40 40 EastNorth en1 = n1.getEastNorth();
Note:
See TracChangeset
for help on using the changeset viewer.