#11837 closed enhancement (fixed)
Advanced key:layer checking in the validator
Reported by: | RicoZ | Owned by: | Klumbumbus |
---|---|---|---|
Priority: | normal | Milestone: | 15.09 |
Component: | Core validator | Version: | |
Keywords: | Cc: |
Description
Recently I came across a bridge with layer=-1 across a river with (implicit) layer=0. Surprisingly Mapnik and many other renderers draw it "correctly" - bridge above water despite obviously wrong layer. The JOSM validator does not produce any warning in this situation.
This may serve as an example, version 5 of the way if someone fixes it:
http://www.openstreetmap.org/way/28590490#map=19/45.86651/10.93736&layers=D
To detect this kind of error it could be necessary to model the vertical stacking by key:layer and compare that to the vertical stacking resulting from the algorithm described here:
http://wiki.openstreetmap.org/wiki/Key:layer#Data_consumers
Attachments (1)
Change History (6)
comment:1 by , 9 years ago
Component: | Core → Core validator |
---|
by , 9 years ago
Attachment: | example-error.osm.gz added |
---|
comment:2 by , 9 years ago
attached example as I intend to fix the error in the OSM database soon.
While tweaking http://wiki.openstreetmap.org/wiki/Key:layer#Data_consumers I came to the conclusion that a test for
(bridge!=no && layer<0 && location!=underground && indoor!=yes)
should be sufficient to catch this situation without false positives (or extremely few of them at worst).
comment:3 by , 9 years ago
Milestone: | → 15.09 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
example error