Ignore:
Timestamp:
2020-03-03T08:00:14+01:00 (5 years ago)
Author:
GerdP
Message:

fix #18835: unexpected full recursive download of children relations makes some edits impossible

  • This is a partly revert of r15811 which changed the meaning of "download members" to "download complete members". Now - as before r15811 - only way and node members are completed. This also applies when overpass api is used. For some relations, e.g. 1311341 (the boundary of Spain), the full recursion has to download thousands of sub relations, which is likely to fail.
  • Cancel button did not work while relation members were downloaded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MultiFetchOverpassObjectReader.java

    r15811 r16008  
    3535                case MULTIPOLYGON:
    3636                case RELATION:
    37                     sb.append(list);
    38                     if (recurseDownRelations)
    39                         sb.append(">>;");
     37                    if (recurseDownRelations) {
     38                        sb.append('(').append(list);
     39                        sb.setLength(sb.length()-1); // remove semicolon
     40                        //recurse down only one level, see #18835
     41                        sb.append("->.r;.r;rel(r);.r;way(r);>;.r;node(r););");
     42                    } else {
     43                        sb.append(list);
     44                    }
    4045                    break;
    4146                case CLOSEDWAY:
Note: See TracChangeset for help on using the changeset viewer.