#11529 closed enhancement (fixed)
[Patch]Check for maxweight in combination with maxweight:forward/backward
Reported by: | windu.2b | Owned by: | windu.2b |
---|---|---|---|
Priority: | normal | Milestone: | 15.09 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
Attachments (1)
Change History (13)
by , 10 years ago
Attachment: | 0002-Validate-the-maxweight-tags-and-values.patch added |
---|
comment:1 by , 10 years ago
Milestone: | → 15.06 |
---|
comment:2 by , 10 years ago
Component: | Core → Core validator |
---|
comment:3 by , 10 years ago
comment:6 by , 9 years ago
Milestone: | 15.08 → 15.09 |
---|---|
Owner: | changed from | to
Status: | new → needinfo |
Thanks for the patch. Like for #11389, can you please see if the test can be converted to a MapCSS-based one instead and address Simon's remarks?
comment:8 by , 9 years ago
I don't think we need a test for maxweight:forward and maxweight:backward, because maxweight restrictions usually count for both directions. Therefore there are only 101x maxweight:forward and 112x maxweight:backward on ways in the database (and only 10 ways have both tags).
follow-ups: 10 12 comment:9 by , 9 years ago
Is it possible to do something similar for maxspeed:lanes or minspeed:lanes? The first has about 2000 different uses and the latter 388 and they are slowly growing as motorway mapping matures around the world.
comment:10 by , 9 years ago
Replying to ViriatoLusitano:
Is it possible to do something similar for maxspeed:lanes or minspeed:lanes? The first has about 2000 different uses and the latter 388 and they are slowly growing as motorway mapping matures around the world.
This requires some core changes first, see #11832
comment:12 by , 8 years ago
Replying to ViriatoLusitano:
Is it possible to do something similar for maxspeed:lanes or minspeed:lanes? The first has about 2000 different uses and the latter 388 and they are slowly growing as motorway mapping matures around the world.
I checked all values of maxspeed:lanes http://taginfo.openstreetmap.org/keys/maxspeed%3Alanes#values and minspeed:lanes http://taginfo.openstreetmap.org/keys/minspeed%3Alanes#values and the only error was wrong number of | in the value. The added test compares it with the lanes key. This is limited to motorways and trunks to avoid false positives for streets with lanes for non motorized traffic, see #8519.
Thank you for your contribution. We also have a powerful Help/Validator/MapCSSTagChecker which is likely able to perform those tests.
maxweight:backward == maxweight:forward
test would apply for many other base keys as well (such asmaxspeed
ormaxwidth
)