Opened 4 years ago
Last modified 2 months ago
#2746 reopened enhancement
Can Validator pick up paths connected to land use boundaries ?
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Component: | Core validator |
| Version: | latest | Keywords: | |
| Cc: | delta_foxtrot@…, singularita@… |
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 (13)
comment:1 Changed 4 years ago by Harry Wood
comment:2 Changed 4 years ago by delta_foxtrot2
- Cc delta_foxtrot@… added
use noexit=yes tag to indicate a dead end and that node will be ignored with recent patches I've submitted.
comment:3 Changed 4 years ago by singularita@…
- Cc singularita@… added
Changed 18 months ago by simon04
comment:4 Changed 18 months ago by simon04
- Summary changed from Can Validator pick up paths connected to land use boundaries ? to [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!
comment:5 follow-up: ↓ 7 Changed 18 months ago by stoecker
Way has already functions firstNode() and lastNode(). No need to reimplement them.
comment:6 Changed 18 months ago by simon04
- Resolution set to fixed
- Status changed from new to closed
In [4682/josm]:
comment:7 in reply to: ↑ 5 Changed 18 months ago by simon04
Replying to stoecker:
Way has already functions firstNode() and lastNode(). No need to reimplement them.
Right… Changed and committed.
comment:8 Changed 18 months ago by Don-vip
- Resolution fixed deleted
- Status changed from closed to 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.
comment:9 Changed 18 months ago by simon04
- Resolution set to fixed
- Status changed from reopened to closed
In [4704/josm]:
comment:10 follow-up: ↓ 12 Changed 18 months ago by Don-vip
- Resolution fixed deleted
- Status changed from closed to 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 Changed 18 months ago by stoecker
- Summary changed from [Patch awaits review] Can Validator pick up paths connected to land use boundaries ? to Can Validator pick up paths connected to land use boundaries ?
comment:12 in reply to: ↑ 10 Changed 2 months ago by abienvenu
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).



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.