#10465 closed enhancement (fixed)
Search/find object role inside relations
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 15.10 |
Component: | Core | Version: | |
Keywords: | search relation role | Cc: |
Description
Could JOSM also search/find relations having objects with a specific role?
For example, I would like to search for relations that have an object with admin_centre
role.
JOSM:
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-08-31 21:55:55 Last Changed Author: Don-vip Revision: 7480 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-08-31 23:51:24 +0200 (Sun, 31 Aug 2014) Last Changed Rev: 7480
Attachments (0)
Change History (9)
comment:1 Changed 9 years ago by
comment:2 follow-up: 4 Changed 9 years ago by
Found this discussion: http://wiki.openstreetmap.org/wiki/Talk:MapCSS/0.2/RoleBasedSelectors
comment:3 Changed 9 years ago by
Keywords: | search relation role added |
---|
comment:4 Changed 8 years ago by
Milestone: | → 15.10 |
---|
See #11916 for the possibility to use MapCSS in search.
Shall we still add separate keywords like hasrole:
(this relation has a member of role) and isrole:
(primitive is part of relation w/ role)?
comment:5 Changed 8 years ago by
Would be nice to have hasrole:
and isrole:
(or similar classes/selectors) and use them to validate data.
comment:6 Changed 8 years ago by
For validation with MapCSS, you can already use roles in child/parent selectors relation >[role=stop] node
.
second this as I could use it in filters