Modify

Opened 15 years ago

Closed 10 years ago

Last modified 3 years ago

#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)

2746.patch (14.4 KB ) - added by simon04 12 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 by Harry Wood, 15 years ago

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.

comment:2 by delta_foxtrot2, 15 years ago

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 by bilbo, 15 years ago

Cc: bilbo added

by simon04, 12 years ago

Attachment: 2746.patch added

comment:4 by simon04, 12 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!

comment:5 by stoecker, 12 years ago

Way has already functions firstNode() and lastNode(). No need to reimplement them.

comment:6 by simon04, 12 years ago

Resolution: fixed
Status: newclosed

In [4682/josm]:

fix #2746 - add validation: Way connected to Area

in reply to:  5 comment:7 by simon04, 12 years ago

Replying to stoecker:

Way has already functions firstNode() and lastNode(). No need to reimplement them.

Right… Changed and committed.

comment:8 by Don-vip, 12 years ago

Resolution: fixed
Status: closedreopened

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 by simon04, 12 years ago

Resolution: fixed
Status: reopenedclosed

In [4704/josm]:

fix #2746 - improve validation: Way connected to Area

comment:10 by Don-vip, 12 years ago

Resolution: fixed
Status: closedreopened

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 stoecker, 12 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 ?

in reply to:  10 ; comment:12 by abienvenu, 11 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).

in reply to:  12 comment:13 by Don-vip, 10 years ago

Resolution: fixed
Status: reopenedclosed

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 !

comment:14 by Don-vip, 10 years ago

Ticket #4682 has been marked as a duplicate of this ticket.

comment:15 by GerdP, 3 years ago

see #19600 for further thoughts/problems

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.