Changeset 10776 in josm for trunk


Ignore:
Timestamp:
2016-08-10T23:33:12+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13295 - improve UnconnectedWays test performance (patch by gpetermann_muenchen)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r10453 r10776  
    2626import org.openstreetmap.josm.data.osm.QuadBuckets;
    2727import org.openstreetmap.josm.data.osm.Way;
     28import org.openstreetmap.josm.data.projection.Ellipsoid;
    2829import org.openstreetmap.josm.data.validation.Severity;
    2930import org.openstreetmap.josm.data.validation.Test;
     
    389390            // overlap a bit and can return duplicate nodes.
    390391            nearbyNodeCache = null;
    391             List<LatLon> bounds = this.getBounds(dist);
     392            List<LatLon> bounds = this.getBounds(dist * (360.0d / (Ellipsoid.WGS84.a * 2 * Math.PI)));
    392393            List<Node> foundNodes = endnodesHighway.search(new BBox(bounds.get(0), bounds.get(1)));
    393394            foundNodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1))));
Note: See TracChangeset for help on using the changeset viewer.