#14125 closed defect (fixed)
unneded warning about missing lanes:*
Reported by: | aceman | Owned by: | team |
---|---|---|---|
Priority: | minor | Milestone: | 16.12 |
Component: | Core validator | Version: | latest |
Keywords: | Cc: |
Description
Hi.
The changeset https://josm.openstreetmap.de/changeset/11371/josm introduced a warning to add lanes:* if there are more than 2 lanes on a road.
The wikipage for "lanes" currently states:
"If the lanes on a two way road are not distributed evenly between the driving directions, the keys lanes:forward=* and lanes:backward=* can be used in addition to the lanes tag."
So please do not show this warning for roads that have an even number of lanes. Those are correctly tagged without lanes:forward/backward.
Thanks.
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
Milestone: | → 16.12 |
---|
comment:3 by , 8 years ago
Thanks. You can probabbly find another rule that catches that case, not just lanes>2. There should be already checks if sum(lanes:*=) matches lanes= and if count(X:lanes=*) differs for varous X.
Your example could be caught with a rule like, if "number of lanes in any value of a key X:lanes" is more than half the value of lanes, show the warning.
comment:4 by , 8 years ago
Thats not possible without producing false positives again, since lanes=* counts lanes for motorized traffic only while the :lanes extension considers all lanes, e.g. bicycle lanes too.
(There is a similar rule but it is limited to motorways and trunks only https://josm.openstreetmap.de/browser/josm/trunk/data/validator/combinations.mapcss?rev=11406#L449)
OK, I didn't know about this implicit rule. The goal of the validator test was to detect cases like https://www.openstreetmap.org/way/4623581 (
lanes=4 + turn:lanes:backward=left|through|right
)