Opened 15 years ago
Closed 4 years ago
#5167 closed defect (worksforme)
role search can't be tied to relation
Reported by: | NE2 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | search mapcss | Cc: |
Description
There's (apparently) no way to search for something that has a role foo in relation bar; role:foo finds everything with role foo in any relation, and role:foo child id:bar finds everything in bar but with role foo in any relation.
Attachments (0)
Change History (4)
follow-up: 2 comment:1 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
Replying to stoecker:
role:inner child id:... does exactly what you want. Find role inner in given relation.
No it doesn't. Download way 61923214 with referrers. Then search for "role:inner child id:170393" and way 61923214 is selected, even though it's not tagged as inner in relation 170393, only in 961376.
This is not necessarily bad behavior, but it would be good to have a way of restricting the role search to a certain relation.
comment:3 by , 6 years ago
Keywords: | search added |
---|
comment:4 by , 4 years ago
Keywords: | mapcss added |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
The standard search is not expressive enough. You can use the MapCSS search mode with the expression relation[osm_id()=170393] >[role:inner] *
role:inner child id:... does exactly what you want. Find role inner in given relation. What do you expect?