#2746 closed enhancement (fixed)
Can Validator pick up paths connected to land use boundaries ?
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core validator | Version: | latest |
Keywords: | Cc: | delta_foxtrot@…, bilbo |
Description
Several times recently I have incorrectly connected a minor path (footway, cycleway etc.) to a land use boundary rather than the intended adjacent path or road. I have only noticed either this when rendering shows the error or on later review for another reason. Is the end of a path at a land use boundary something Validator could/should detect and report on ?
Attachments (1)
Change History (16)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Cc: | added |
---|
use noexit=yes tag to indicate a dead end and that node will be ignored with recent patches I've submitted.
comment:3 by , 15 years ago
Cc: | added |
---|
by , 13 years ago
Attachment: | 2746.patch added |
---|
comment:4 by , 13 years ago
Summary: | Can Validator pick up paths connected to land use boundaries ? → [Patch awaits review] Can Validator pick up paths connected to land use boundaries ? |
---|
Patch attached:
- adds utility functions
AbstractPrimitive
:boolean hasTag(String key, String... values)
ElemStyles
:AreaElemStyle getAreaElemStyle(OsmPrimitive p, boolean pretendWayIsClosed)
,boolean hasAreaElemStyle(OsmPrimitive p, boolean pretendWayIsClosed)
Way
:Node getFirstNode()
,Node getLastNode()
- adds validation test
WayConnectedToArea
Please take a look at the provided patch!
follow-up: 7 comment:5 by , 13 years ago
Way has already functions firstNode() and lastNode(). No need to reimplement them.
comment:7 by , 13 years ago
Replying to stoecker:
Way has already functions firstNode() and lastNode(). No need to reimplement them.
Right… Changed and committed.
comment:8 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
There are plenty of false positives with this new warning, like a highway ending on a roundabout, a footway ending on a building entrance... This check should be be only restricted to landuse boundaries right now, and extended to other specific cases if needed.
follow-up: 12 comment:10 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Sorry to reopen again this ticket :)
I have another case where this warning should not happen: when a landuse share a way segment with a highway A, and another highway B connects to A:
_____ highway A / | -----------| | | | landuse |-------- highway B | | -----------| |
This is perfectly valid :)
comment:11 by , 13 years ago
Summary: | [Patch awaits review] Can Validator pick up paths connected to land use boundaries ? → Can Validator pick up paths connected to land use boundaries ? |
---|
follow-up: 13 comment:12 by , 12 years ago
Replying to Don-vip:
Sorry to reopen again this ticket :)
I have another case where this warning should not happen: when a landuse share a way segment with a highway A, and another highway B connects to A:
_____ highway A / | -----------| | | | landuse |-------- highway B | | -----------| |This is perfectly valid :)
Yes Don-vip, it is valid, and apparently is has been fixed somewhere before version 5836!
However, there is still an issue: if some highway shares a way with landuse, and this highway is split in two segments (because it has different properties, like maxspeed), we get two "Way connected to Area" warnings at the connection point.
The validation should not check if a way is connected to an area, but should check if a way end is connected to nothing else than an area (and noexit is not set to "yes" on that end node).
comment:13 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Replying to abienvenu:
However, there is still an issue: if some highway shares a way with landuse, and this highway is split in two segments (because it has different properties, like maxspeed), we get two "Way connected to Area" warnings at the connection point.
Seems to have been fixed now, cannot reproduce with latest. If you find another false positive, feel free to open a new ticket :) Closing this one for good !
Yes I think this is a common problem with roads as well as footways.
I know a lot of mappers deliberately connect footways to landuse areas as well as continuing it to the adjacent path/road. So the connection itself is not an error, but maybe a if the footpath terminates at the connection with landuse, this could count as a warning. Likewise for landuse-like tags such as leisure=park.