Ticket #18624: 18624.patch

File 18624.patch, 979 bytes (added by GerdP, 2 months ago)

download only incomplete nodes

  • src/org/openstreetmap/josm/actions/downloadtasks/DownloadReferrersTask.java

     
    148148        Collection<Way> ways = ds.getWays();
    149149
    150150        if (!ways.isEmpty()) {
    151             // Ensure each node is only listed once
    152             Set<Node> nodes = ways.stream().flatMap(w -> w.getNodes().stream()).collect(Collectors.toSet());
     151            // Ensure each incomplete node is only listed once
     152            Set<Node> nodes = ways.stream().flatMap(w -> w.getNodes().stream().filter(OsmPrimitive::isIncomplete)).collect(Collectors.toSet());
    153153            // Don't retrieve any nodes we've already grabbed
    154154            nodes.removeAll(targetLayer.data.getNodes());
    155155            if (!nodes.isEmpty()) {