Opened 12 years ago
Closed 12 years ago
#8255 closed enhancement (fixed)
Guess roles from selected objects tags when creating a relation via presets
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | presets relation role | Cc: |
Description
Use case:
- Select a street tagged as
highway=*
and street numbers tagged asaddr:housenumber=*
- Create an Associated Street via the internal presets
The selected objects are automatically added as members, but without any role. JOSM should guess the default roles (street
and house
) when the objects are correctly tagged.
This could be applied to other relations (bus routes, etc.)
Attachments (2)
Change History (15)
comment:1 by , 12 years ago
follow-up: 3 comment:2 by , 12 years ago
Difficult for turn restrictions. How distinguish from
and to
? Only via
may be guessed.
comment:3 by , 12 years ago
Replying to Don-vip:
Difficult for turn restrictions. How distinguish
from
andto
? Onlyvia
may be guessed.
You are right, works only for oneway streets.
by , 12 years ago
Attachment: | 8255.patch added |
---|
comment:4 by , 12 years ago
Summary: | Guess roles from selected objects tags when creating a relation via presets → [Patch] Guess roles from selected objects tags when creating a relation via presets |
---|
First working implementation attached. Further ideas: validate this information, also use for relation editor dialog (when adding new members).
by , 12 years ago
Attachment: | 8255_v2.patch added |
---|
comment:6 by , 12 years ago
For the validation part, I'm currently struggling on the following: We probably shouldn't validate a route relation wrt. the new public transport scheme. Unfortunately, it is impossible to distinguish the old/new scheme from the tags only. A simple version=2
tag for the new schema would've made a lot of things easier.
comment:9 by , 12 years ago
Hmm, the relation presets more and more becomes what I had in mind when I started it. Nice.
comment:11 by , 12 years ago
Summary: | [Patch] Guess roles from selected objects tags when creating a relation via presets → Guess roles from selected objects tags when creating a relation via presets |
---|
comment:13 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
+1
Would be nice for turn-restrictions !