#15676 closed enhancement (fixed)
[PATCH] New keyword 'currentselection' for parameter 'select' in LoadAndZoom handler
Reported by: | skorbut | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 17.12 |
Component: | Core remotecontrol | Version: | |
Keywords: | Cc: |
Description
The RemoteControl function allows to select OSM objects based on their ID and then set tags for these objects using a call such as:
GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=node1234,way5678
However, when importing data from another datasource that is unrelated to OSM, OSM IDs (here "node1234" and "way5678") for an import can't be directly used to create an URL for the remote plugin since they are unknown to this datasource. Because of this I'd like to realize a workflow, where one can select one (or multiple) OSM objects in JOSM and then add tags to these selected objects using a call such as:
GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=currentselection
To get a more solid idea how this would work, look at http://demo.tlab.ch/tomas-gr . There you'll find data from a touristic organisation which are donated under CC0 to OSM. The workflow would be:
- In JOSM: open a suitable region
- (optional) In JOSM: create a new node/way/relation
- In JOSM: Select OSM object(s) onto which tags should be pasted
- On website: Click link to paste tags into JOSM
- In JOSM: Decide which tags to actually apply to object(s)
I've attached a corresponding patch.
It's written in a way that would also allow to select new objects in addition to the currently selected ones:
GET /load_and_zoom?left=...&right=...&top=...&bottom=...&addtags=name=MyName&select=currentselection,node1234,way5678
PS: I'm aware that the tags listed at http://demo.tlab.ch/tomas-gr (e.g. stars=...) still need some tweaking to be directly imported.
Attachments (1)
Change History (4)
by , 7 years ago
Attachment: | currentselection.diff added |
---|
comment:1 by , 7 years ago
Milestone: | → 17.12 |
---|
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 13212/josm: