Changeset 5655 in josm for trunk/src/org
- Timestamp:
- 2013-01-01T19:50:14+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
r5647 r5655 176 176 if (centroid == null) return; // fix #8305 177 177 double maxDistance = Main.pref.getDouble("validator.addresses.max_street_distance", 200.0); 178 boolean hasIncompleteWays = false; 178 179 for (Way streetPart : street) { 179 180 for (Pair<Node, Node> chunk : streetPart.getNodePairs(false)) { … … 184 185 } 185 186 } 187 if (!hasIncompleteWays && streetPart.isIncomplete()) { 188 hasIncompleteWays = true; 189 } 186 190 } 187 // No street segment found near this house, report error 191 // No street segment found near this house, report error on if the relation does not contain incomplete street ways (fix #8314) 192 if (hasIncompleteWays) return; 188 193 List<OsmPrimitive> errorList = new ArrayList<OsmPrimitive>(street); 189 194 errorList.add(0, house); -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r5641 r5655 179 179 for (Collection<OsmPrimitive> c : Arrays.asList(new Collection[]{ri.nodes, ri.ways, ri.relations})) { 180 180 for (OsmPrimitive p : c) { 181 if ( !r.memberExpression.match(p)) {181 if (p.isUsable() && !r.memberExpression.match(p)) { 182 182 wrongTypes.add(p); 183 183 }
Note:
See TracChangeset
for help on using the changeset viewer.