Ticket #13295: bbox_calculation.patch
| File bbox_calculation.patch, 1.2 KB (added by , 10 years ago) |
|---|
-
src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java
25 25 import org.openstreetmap.josm.data.osm.OsmPrimitive; 26 26 import org.openstreetmap.josm.data.osm.QuadBuckets; 27 27 import org.openstreetmap.josm.data.osm.Way; 28 import org.openstreetmap.josm.data.projection.Ellipsoid; 28 29 import org.openstreetmap.josm.data.validation.Severity; 29 30 import org.openstreetmap.josm.data.validation.Test; 30 31 import org.openstreetmap.josm.data.validation.TestError; … … 388 389 // This needs to be a hash set because the searches 389 390 // overlap a bit and can return duplicate nodes. 390 391 nearbyNodeCache = null; 391 List<LatLon> bounds = this.getBounds(dist );392 List<LatLon> bounds = this.getBounds(dist * (360.0d / (Ellipsoid.WGS84.a * 2 * Math.PI))); 392 393 List<Node> foundNodes = endnodesHighway.search(new BBox(bounds.get(0), bounds.get(1))); 393 394 foundNodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1)))); 394 395
