Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3209 closed enhancement (worksforme)

There should be a way to do a full download of selected objects

Reported by: Daeron Owned by: team
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

When downloading all relation members through the relation dialog, the members are downloaded, but any relation they are member of and wasn't already downloaded, is not downloaded. Thus, it would be nice if josm had a feature to download selected object "fully", to get also the relations.

Other uses for this are if you download something from eg. the XAPI, and want also all the relations that the ways are member of. Also if you have broken data (missing nodes in ways, missing objects in relations) this feature could be used to "update" those and making it possible to edit the data without data loss.

Attachments (0)

Change History (9)

comment:1 by Gubaer, 15 years ago

You can switch to the "Child relations" tab in the relation editor and download all children recursively. In my opinion, this is exactly what you are asking for, isn't it?

in reply to:  1 comment:2 by Daeron, 15 years ago

Replying to Gubaer:

You can switch to the "Child relations" tab in the relation editor and download all children recursively. In my opinion, this is exactly what you are asking for, isn't it?

Not quite, as that can only be done for one relation at a time. I've sometimes downloaded hundreds of boudnaries from XAPI, and downloading each separately to get the relations associated with them is a pain.

comment:3 by Daeron, 15 years ago

Actually, no that feature isn't what I mean, as it only works for relations. What I want is something similiar to ways and nodes, that can be done en masse.

comment:4 by Gubaer, 15 years ago

You can select any primitive you want and then invoke File->Update Selection which will the respective primitives from the server.

What's the difference to what you are looking for?

in reply to:  4 comment:5 by Daeron, 15 years ago

Replying to Gubaer:

You can select any primitive you want and then invoke File->Update Selection which will the respective primitives from the server.

What's the difference to what you are looking for?

The update doesn't do FULL download, ie. it doesn't download the relations that the selected objects are member of.

comment:6 by Gubaer, 15 years ago

Ah, I see: to me FULL download means downloads with the API parameter full, i.e. GET /api/0.6/nodes/12345678/full.

These API calls always load children of a primitive, i.e. nodes of a way or members of a
relation.

What you are looking for is an action which loads the parent relations of an arbitrary set of primtives, similar to what you can do in the tab "Parent relations" in the relation editor:

  1. select primtives
  2. invoke the action "Download parent relations for primtives"

What is different from File->Download referrers then? This action loads the parent relations of any primtive.

in reply to:  6 comment:7 by Daeron, 15 years ago

Resolution: worksforme
Status: newclosed

Replying to Gubaer:

Ah, I see: to me FULL download means downloads with the API parameter full, i.e. GET /api/0.6/nodes/12345678/full.

These API calls always load children of a primitive, i.e. nodes of a way or members of a
relation.

What you are looking for is an action which loads the parent relations of an arbitrary set of primtives, similar to what you can do in the tab "Parent relations" in the relation editor:

  1. select primtives
  2. invoke the action "Download parent relations for primtives"

What is different from File->Download referrers then? This action loads the parent relations of any primtive.

Ah, yes, I had mixed up the /full and /relations in the api, sorry. And yes, the Download referrers (btw, the name is a bit confusing) is what I wanted.

comment:8 by Gubaer, 15 years ago

Do you have a suggestion for a better name?

"Download parent ways and relations?"

in reply to:  8 comment:9 by Daeron, 15 years ago

Replying to Gubaer:

Do you have a suggestion for a better name?

"Download parent ways and relations?"

That would be clearer, yes.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.