Changeset 11315 in josm
- Timestamp:
- 2016-11-26T00:30:08+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r11252 r11315 1094 1094 public static List<AssembledPolygon> findBoundaryPolygons(Collection<WayInPolygon> multigonWays, 1095 1095 List<Way> discardedResult) { 1096 //first find all discardable ways, by getting outer shells.1097 //this will produce incorrect boundaries in some cases, but second pass will fix it.1098 List<WayInPolygon> discardedWays = new ArrayList<>();1099 1100 1096 // In multigonWays collection, some way are just a point (i.e. way like nodeA-nodeA) 1101 1097 // This seems to appear when is apply over invalid way like #9911 test-case … … 1103 1099 List<WayInPolygon> cleanMultigonWays = new ArrayList<>(); 1104 1100 for (WayInPolygon way: multigonWays) { 1105 if (way.way.getNodesCount() == 2 && way.way.isClosed()) 1106 discardedWays.add(way); 1107 else 1101 if (way.way.getNodesCount() != 2 || !way.way.isClosed()) 1108 1102 cleanMultigonWays.add(way); 1109 1103 }
Note:
See TracChangeset
for help on using the changeset viewer.