Opened 5 years ago

Last modified 4 years ago

#20809 new enhancement

Tags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected — at Version 4

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 skyper)

What steps will reproduce the problem?

  1. Have some data loaded
  2. Select at least one object
  3. Select several tags in Tags/Membership panel
  4. 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

Change History (4)

comment:1 by skyper, 5 years ago

Summary: Tags/Membership panel: Search for "Key/Value(/Type)" with multiple tags selectedTags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected

comment:2 by simon04, 5 years ago

Should it be key1=value1 AND key2=value2 or key1=value1 OR key2=value2? What should "Key/Value/Type" do when a node with key1=value1 and a way with key2=value2 is selected? Currently, the search string is (type:node key1=value1) OR (type:way key1=value2).

in reply to:  2 comment:3 by skyper, 5 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)

Last edited 4 years ago by skyper (previous) (diff)

comment:4 by skyper, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.