Modify

Opened 14 years ago

Closed 3 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)

comment:1 by stoecker, 14 years ago

Owner: changed from team to NE2
Status: newneedinfo

role:inner child id:... does exactly what you want. Find role inner in given relation. What do you expect?

in reply to:  1 comment:2 by NE2, 14 years ago

Owner: changed from NE2 to team
Status: needinfonew

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 Don-vip, 5 years ago

Keywords: search added

comment:4 by simon04, 3 years ago

Keywords: mapcss added
Resolution: worksforme
Status: newclosed

The standard search is not expressive enough. You can use the MapCSS search mode with the expression relation[osm_id()=170393] >[role:inner] *

Modify Ticket

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