Modify ↓
#18679 closed enhancement (fixed)
[Patch {in progress, awaiting feedback}] Autofilter: extract numeric value from number+unit
Reported by: | simon04 | Owned by: | simon04 |
---|---|---|---|
Priority: | normal | Milestone: | 20.02 |
Component: | Core | Version: | |
Keywords: | autofilter | Cc: | Don-vip, Klumbumbus |
Description
In order to make incline=42%
and maxspeed=42 mph
work, we have to somehow extract the numeric value from those tags.
I propose the following procedure given in pseudocode for a primitive osm
and value
(42%
) for key
(incline
):
intValue = rule.valueExtractor(value) || rule.extractDefaultValues(osm) filter = filter(key, intValue) label = rule.valueFormatter(intValue) button = button(label)
Attachments (1)
Change History (5)
by , 5 years ago
Attachment: | 18679.patch added |
---|
comment:2 by , 5 years ago
Keywords: | autofilter added |
---|
Note:
See TracTickets
for help on using tickets.
The patch is not yet finished; of course, the unit tests need to be adapted/extended.