- Timestamp:
- 2024-01-30T10:28:35+01:00 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java
r18960 r18961 317 317 DataSet ds = OsmDataManager.getInstance().getActiveDataSet(); 318 318 if (ds != null) { 319 for (Way w: waysToTest) { 320 selection.addAll(ds.searchWays(w.getBBox())); 319 for (Way wt : waysToTest) { 320 selection.addAll(ds.searchWays(wt.getBBox()).stream() 321 .filter(w -> !w.isDeleted() && isPrimitiveUsable(w)).collect(Collectors.toList())); 322 if (this instanceof CrossingWays.Boundaries) { 323 List<Relation> relations = ds.searchRelations(wt.getBBox()).stream() 324 .filter(p -> isPrimitiveUsable(p)).collect(Collectors.toList()); 325 for (Relation r: relations) { 326 for (Way w : r.getMemberPrimitives(Way.class)) { 327 if (!w.isIncomplete()) 328 selection.add(w); 329 } 330 } 331 } 321 332 } 322 333 } 323 334 } 324 335 for (Way w : selection) { 325 if (!w.isDeleted() && isPrimitiveUsable(w)) { 326 testWay(w); 327 } 336 testWay(w); 328 337 } 329 338 // free storage 330 339 cellSegments.clear(); 331 340 seenWays.clear(); 332 waysToTest.clear();333 341 if (partialSelection) 334 342 removeIrrelevantErrors(waysToTest); 343 waysToTest.clear(); 335 344 super.endTest(); 336 345 }
Note:
See TracChangeset
for help on using the changeset viewer.