Modify

Ticket #4142 (new defect)

Opened 2 years ago

Last modified 21 months ago

JOSM does not query API for referring relations when downloading primitives

Reported by: Nakor Owned by: team
Priority: critical Component: Core
Version: latest Keywords:
Cc:

Description

Download data using the following bounding box:  http://www.openstreetmap.org/?lat=42.65924&lon=-83.3199&zoom=17

Download all members from the relation

Search for way 43418202. It is shown only as a member of relation 308,352 but if it is also member of another relation (see  http://www.openstreetmap.org/browse/way/43418202).

This would cause inconsistencies if the way is split.

Attachments

Change History

comment:1 Changed 2 years ago by mjulius

  • Summary changed from Incomplete data when downloading all memebers of a relation to JOSM does not query API for referring relations when downloading primitives

When downloading primitives from the API (with multi get) the API does not return relations the primitive is member of. There is a special API call for that:

GET /api/0.6/[node|way|relation]/#id/relations

(see  http://wiki.openstreetmap.org/wiki/API_v0.6#Relations_for_Element:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2Frelations)

JOSM needs to iterate over all downloaded primitives and check whether they are members of any relation.

Better would be if the API provided a call like

GET /api/0.6/[nodes|ways|relations]/#ids/complete

that returns the same kind of data like the map call.

comment:2 Changed 2 years ago by bastiK

Ticket #4405 has been marked as a duplicate of this ticket.

comment:4 Changed 2 years ago by Nakor

Ticket #4734 has been marked as a duplicate of this ticket.

comment:5 Changed 21 months ago by stoecker

Ticket #5086 has been marked as a duplicate of this ticket.

comment:6 Changed 21 months ago by stoecker

  • Priority changed from major to critical
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from team. Next status will be 'new'
Next status will be 'needinfo'The owner will change to Nakor
as duplicate The resolution will be set to duplicate. Next status will be 'closed'The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.