Opened 18 years ago
Closed 18 years ago
#623 closed defect (wontfix)
JOSM doesn`t download nested relations
| Reported by: | AkMeR | Owned by: | framm |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | Core | Version: | latest |
| Keywords: | Cc: |
Description
When one relation is a member of another relation (e.g. Relations/Proposed/Postal Addresses), JOSM doesn`t download this relation (which is a member).
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
| Priority: | major → critical |
|---|---|
| Type: | enhancement → defect |
| Version: | release → latest |
comment:2 by , 18 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
This is not a bug. JOSM uses the "map" API call and loads exactly the relations returned by it. Automatically following references could be potentially dangerous (generating huge downloads e.g. if you happen to download part of a national cycle route relation or so).
Agree that relation handling in JOSM is not optimal and needs a lot of attention; maybe we will have an option for the user to manually request following certain links set up by relations.



As its described in API 0.5:
Resolving Forward References
You can retrieve an object and all objects referenced by it.
This call is available for an <objtype> of way or relation. For a way, it will return the way specified plus the full XML of all nodes referenced by the way. For a relation, it will return the following:
the relation itself
all nodes, ways, and relations that are members of the relation
plus all nodes used by ways from the previous step.
The same recursive logic is not applied to relations. This means: If relation r1 contains way w1 and relation r2, and w1 contains nodes n1 and n2, and r2 contains node n3, then a "full" request for r1 will give you r1, r2, w1, n1, and n2. Not n3.
When I manully retrieve relation, for example by typing in browser http://api.openstreetmap.org/api/0.5/relation/5677/full, the server returns all relations, that referenced by relation 5677.
But JOSM doesn`t! It only returns relations assigned to objects in current bounding box!