Changeset 17635 in josm for trunk/src/org
- Timestamp:
- 2021-03-22T10:19:02+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r17333 r17635 443 443 */ 444 444 private void downloadRelations(ProgressMonitor progressMonitor) throws OsmTransferException { 445 boolean removeIncomplete = outputDataSet.isEmpty(); 445 446 Set<Long> toDownload = new LinkedHashSet<>(relations); 446 447 fetchPrimitives(toDownload, OsmPrimitiveType.RELATION, progressMonitor); … … 450 451 // OSM multi-fetch api may return invisible objects, we don't try to get details for them 451 452 for (Relation r : outputDataSet.getRelations()) { 452 if (!r.isVisible()) 453 if (!r.isVisible()) { 453 454 toDownload.remove(r.getUniqueId()); 454 } 455 } else if (removeIncomplete) { 456 outputDataSet.removePrimitive(r); 457 } 458 } 459 455 460 // fetch full info for all visible relations 456 461 for (long id : toDownload) {
Note:
See TracChangeset
for help on using the changeset viewer.