Modify

Opened 7 years ago

Closed 7 years ago

Last modified 3 years ago

#8850 closed enhancement (fixed)

Support of less than & greater than in Display Filter

Reported by: sven.fabricius@… Owned by: team
Priority: normal Milestone: 13.12
Component: Core Version: latest
Keywords: filter search interval Cc:

Description

Hello,
I' working on historical data and I use the start_date and end_date tags. Some of the objects are overlaying others and it's very hard to work correctly on them.
Currently the display filter only works for the equal sign and not for less than and greater than.

I've tested following filters with no success:
"start_date">1950
"start_date"<1960
"start_date">"1950"
"start_date"<"1960"

Is it possible to implement this? with support for integer, float and maybe date?

Regards
Sven

Attachments (0)

Change History (9)

comment:1 Changed 7 years ago by skyper

Component: Core mappaintCore
Keywords: search interval added; display removed

I think it would be even better to allow intervals like lanes=2-4 or start_date=1900-1960.


comment:2 in reply to:  1 ; Changed 7 years ago by skyper

Resolution: worksforme
Status: newclosed

Replying to skyper:

I think it would be even better to allow intervals like lanes=2-4 or start_date=1900-1960.

Actually this already exists in expert mode.

start_date:1950-
start_date:-1960
start_date:1950-1960

should do it.

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

comment:3 in reply to:  2 ; Changed 7 years ago by AlfonZ

Resolution: worksforme
Status: closedreopened

Replying to skyper:

Actually this already exists in expert mode.

start_date:1950-
start_date:-1960
start_date:1950-1960

should do it.

I have expert mode enabled but it doesn't work for me, only id, changeset, version, nodes, tags and areasize accepted intervals.
Do you happen to know which of your plugins enables doing that?

comment:4 Changed 7 years ago by Don-vip

The range does only work with operators accepting numerical values, such as metadata (id, version...) or counters (nodes, tags...), it does not work with tags, which may contain anything (event start_date may contain some exotic values like "before 1972", "after 1961", etc.)

comment:5 in reply to:  3 Changed 7 years ago by skyper

Replying to AlfonZ:

I have expert mode enabled but it doesn't work for me, only id, changeset, version, nodes, tags and areasize accepted intervals.

Sorry my bad. You might be able to use regular expression though.

comment:6 Changed 7 years ago by simon04

Resolution: fixed
Status: reopenedclosed

In 6429/josm:

fix #8850 - search: support less/greater-than, e.g., start_date>1950

comment:7 Changed 7 years ago by Don-vip

Milestone: 13.12 (6502)

comment:8 Changed 7 years ago by akks

Was related:
In 6831/josm: fix #9703: key>value in search or filter gave NPE for non-existing key.

comment:9 Changed 3 years ago by stoecker

Milestone: 13.12 (6502)13.12

Milestone renamed

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.