Changeset 6862 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java
- Timestamp:
- 2014-02-17T19:42:07+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingWays.java
r6722 r6862 74 74 Map<List<Way>, Set<WaySegment>> seenWays = new HashMap<List<Way>, Set<WaySegment>>(500); 75 75 76 Collection<TestError> preliminaryErrors = new ArrayList<TestError>(); 76 77 for (Set<WaySegment> duplicated : nodePairs.values()) { 77 78 int ways = duplicated.size(); … … 137 138 } 138 139 139 errors.add(new TestError(this,140 preliminaryErrors.add(new TestError(this, 140 141 type < OVERLAPPING_HIGHWAY_AREA ? Severity.WARNING : Severity.OTHER, 141 142 errortype, type, prims, duplicated)); … … 148 149 } 149 150 } 151 152 // see ticket #9598 - only report if at least 3 segments are shared 153 for (TestError error : preliminaryErrors) { 154 if (error.getHighlighted().size() / error.getPrimitives().size() >= 3) { 155 errors.add(error); 156 } 157 } 158 150 159 super.endTest(); 151 160 nodePairs = null;
Note:
See TracChangeset
for help on using the changeset viewer.