Opened 4 years ago
Last modified 4 years ago
#20103 new enhancement
Warn about short ways
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core validator | Version: | |
Keywords: | template_report short way length | Cc: |
Description
See my comment 4 and follow-ups on #20057 for the origin.
What steps will reproduce the problem?
- Have a
highway=motorway
with total way length of less than one meter - Run validator
What is the expected result?
A (info) warning about a uncommen short way
What happens instead?
No warning
Please provide any additional information below. Attach a screenshot if possible.
MapCSS java eval expression waylength()
can be used.
Can JOSM_pref(key, default)
be used to set a minimum allowed length and maybe even tags to check on or tags to ignore?
I think of at least two levels as user might want to set a tiny default (0.01 meter) to not get warnings about highway=steps
or waterway=stream
but still handle major highways and other waterways with length below one meter.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-11-17 02:38:27 +0100 (Tue, 17 Nov 2020) Revision:17322 Build-Date:2020-11-17 02:31:05 URL:https://josm.openstreetmap.de/svn/trunk
Attachments (0)
Change History (3)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
No, sorry, did not find time coding.
All these bug hunts and reproducing plus the wiki updates took time. Just found more major problems with update and conflicts, yesterday, I have to find time to report them (tomorrow). Considering the wiki, Help/Concepts/Object and missing core actions are my primary goals, before I take a look at #19504.
comment:3 by , 4 years ago
Did you try it with validator rules?
If it helps:
way[highway][waylength()<0.33] { throwWarning: tr("Microroad"); }
I don't know this feature. Did you try it with validator rules?