Modify

Opened 8 weeks ago

Last modified 7 weeks 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 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

Attachments (0)

Change History (6)

comment:1 Changed 8 weeks ago by skyper

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 Changed 8 weeks ago by simon04

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

comment:3 in reply to:  2 Changed 8 weeks ago by skyper

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=value1)

Last edited 8 weeks ago by skyper (previous) (diff)

comment:4 Changed 7 weeks ago by skyper

Description: modified (diff)

comment:5 Changed 7 weeks ago by dieterdreist

see also #20816

comment:6 Changed 7 weeks ago by Strubbl

Cc: Strubbl added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to skyper
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.