Modify

Opened 9 years ago

Closed 4 years ago

Last modified 4 years ago

#11310 closed enhancement (fixed)

Support setting changeset tags during /import call

Reported by: StefanB Owned by: simon04
Priority: normal Milestone: 20.05
Component: Core remotecontrol Version:
Keywords: changeset upload Cc:

Description

It would make much sense to specify source tag for the changeset during /import remote control call

I know it can be set on load_and_zoom, but that requires exact bbox as a parameter and calling that would prevent users from inspecting the imported data before it is merged with existing data downloaded via API.

It can also support setting changeset comment, but source tag is the most crucial one for imports.

Attachments (1)

11310.patch (3.3 KB ) - added by taylor.smock 5 years ago.
Initial quick and dirty patch. Needs deduplication of code (for changeset_tags) and parseUrlTagsToKeyValues should probably be moved to RequestHandler.

Download all attachments as: .zip

Change History (18)

comment:1 by StefanB, 9 years ago

Ooops, probably a duplicate of #11045. Didn't remember mentioning this in a comment there.

comment:2 by simon04, 9 years ago

Since the data is loaded from an OSM file, the changeset comment could be specified there:

<osm version='0.6' upload='true' generator='JOSM'>
  <changeset><tag k="comment" v="This will show up when uploading"/></changeset>
  <!-- ... -->
</osm>

comment:3 by anonymous, 9 years ago

Thanks for a nice hint, but we're importing zipped shapefiles, not .osm xml files.

comment:4 by anonymous, 9 years ago

We could in theory use OpenData plugin to convert all the shapefiles to OSM xml format in the data preparation phase, but I don't know yet how to do that in a script.

comment:5 by StefanB, 9 years ago

Would it be possible to use zip file comment or some ShapeFile comment (if it exists at all, not sure)? Or a text file within in zip? Extra import parameter would be easiest, i guess.

comment:6 by StefanB, 5 years ago

The recently closed #18038 "[PATCH] Arbitrary changeset tags should be able to be added via remote control" gave me some hope, but unfortunately the changeset_tags parameter is only applicable for /load_and_zoom command.

Our import project (https://raba.openstreetmap.si/) could really use the changeset_source (and optionally changeset_comment) or just a generic changeset_tags also on the /import remote control API command to specify the source of the import.

The changeset_source parameter could also be required for all /import calls, as any import should specify the source!

Last edited 5 years ago by StefanB (previous) (diff)

by taylor.smock, 5 years ago

Attachment: 11310.patch added

Initial quick and dirty patch. Needs deduplication of code (for changeset_tags) and parseUrlTagsToKeyValues should probably be moved to RequestHandler.

comment:7 by Don-vip, 4 years ago

Keywords: changeset upload added
Milestone: 20.03
Owner: changed from team to Don-vip
Status: newassigned

comment:8 by simon04, 4 years ago

Milestone: 20.0320.04

comment:9 by simon04, 4 years ago

Owner: changed from Don-vip to simon04
Status: assignednew

comment:10 by simon04, 4 years ago

Resolution: fixed
Status: newclosed

In 16324/josm:

fix #11310 - Support setting changeset tags during /import call

comment:11 by stoecker, 4 years ago

I'm pretty sure there is a wiki page where changes to remote control should be documented.

comment:14 by StefanB, 4 years ago

Great, thanks!

Can you please add this also to the:

  • import
  • load_data
  • open_file

...and possibly other calls?
Or just make a separate call just for that.

It is needed there to set source tags and meaningful comments.

comment:15 by Don-vip, 4 years ago

I'm working on a refactoring of remote control parameters handling to share parameters between different handlers.

comment:16 by StefanB, 4 years ago

That would be great, and would simplify the API considerably. Thanks!

comment:17 by Klumbumbus, 4 years ago

Milestone: 20.0420.05

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
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.