Opened 4 years ago
Last modified 3 years ago
#20809 new enhancement
Tags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report tags memberships panel search key value | Cc: | Strubbl |
Description (last modified by )
What steps will reproduce the problem?
- Have some data loaded
- Select at least one object
- Select several tags in Tags/Membership panel
- Search Key/Value or Key/Value/Type
What is the expected result?
All object which have all selected tags are in selection.
What happens instead?
Nothing.
Please provide any additional information below. Attach a screenshot if possible.
This function is very useful but it could be much more powerful if more than a single tag/key is supported.
Thanks a lot in advance
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2021-04-25 09:16:28 +0200 (Sun, 25 Apr 2021) Revision:17821 Build-Date:2021-04-26 01:31:00 URL:https://josm.openstreetmap.de/svn/trunk
Attachments (0)
Change History (6)
comment:1 by , 4 years ago
Summary: | Tags/Membership panel: Search for "Key/Value(/Type)" with multiple tags selected → Tags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected |
---|
follow-up: 3 comment:2 by , 4 years ago
comment:3 by , 4 years ago
Replying to simon04:
I would prefer and AND
. My simple use case is a highway=primary
with name=Berliner Allee
and maxspeed=50
but I can think of many tag combinations like power=substation
, substation=minor_distribution
and building=yes
.
I guess you meant:
What should "Key/Value/Type" do when a node with key1=value1 and a way with key1=value2 is selected?
I noticed that multiple values are possible, but I never tried to use "Key/Value/Type" with different object types until a few minutes, ago. I'd say, I tend to a strict search without mixing objects types and key-value pairs and just adding more key-value pairs inside the brackets.
(type:node key1=value1 key2=value1 key3=value1) OR (type:way key1=value2 key2=value2 key3=value2)
comment:4 by , 4 years ago
Description: | modified (diff) |
---|
comment:6 by , 4 years ago
Cc: | added |
---|
Should it be
key1=value1 AND key2=value2
orkey1=value1 OR key2=value2
? What should "Key/Value/Type" do when a node withkey1=value1
and a way withkey2=value2
is selected? Currently, the search string is(type:node key1=value1) OR (type:way key1=value2)
.