Modify

Opened 11 years ago

Closed 10 years ago

Last modified 6 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 by skyper, 11 years ago

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.


in reply to:  1 ; comment:2 by skyper, 11 years ago

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 11 years ago by skyper (previous) (diff)

in reply to:  2 ; comment:3 by AlfonZ, 11 years ago

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 by Don-vip, 11 years ago

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

in reply to:  3 comment:5 by skyper, 11 years ago

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 by simon04, 10 years ago

Resolution: fixed
Status: reopenedclosed

In 6429/josm:

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

comment:7 by Don-vip, 10 years ago

Milestone: 13.12 (6502)

comment:8 by akks, 10 years ago

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

comment:9 by stoecker, 6 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.