#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)
Change History (18)
comment:1 by , 10 years ago
comment:2 by , 10 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 , 10 years ago
Thanks for a nice hint, but we're importing zipped shapefiles, not .osm xml files.
comment:4 by , 10 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 , 10 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 , 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!
by , 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 , 5 years ago
Keywords: | changeset upload added |
---|---|
Milestone: | → 20.03 |
Owner: | changed from | to
Status: | new → assigned |
comment:8 by , 5 years ago
Milestone: | 20.03 → 20.04 |
---|
comment:9 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:11 by , 5 years ago
I'm pretty sure there is a wiki page where changes to remote control should be documented.
comment:14 by , 5 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 , 5 years ago
I'm working on a refactoring of remote control parameters handling to share parameters between different handlers.
Ooops, probably a duplicate of #11045. Didn't remember mentioning this in a comment there.