Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20905 closed defect (fixed)

Duplicate informal warnings about missing `crossing=*`

Reported by: skyper Owned by: GerdP
Priority: normal Milestone: 21.10
Component: Core validator Version: latest
Keywords: template_report highway=crossing crossing Cc:

Description

What steps will reproduce the problem?

  1. Have a footway and a residential road crossing with a shared node tagged highway=crossing
  2. Run Validator

What is the expected result?

One informal warning about missing crossing=* from mapcss

What happens instead?

Two informal warnings:

  • Incomplete pedestrian crossing tagging. Required tags are highway=crossing|traffic_signals and crossing=*. from java test "Highways"
  • highway=crossing without crossing from mapcss

Please provide any additional information below. Attach a screenshot if possible.

The java test should not warn about highway=crossing with missing crossing=* as this is covered in mapcss.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-05-17 21:27:21 +0200 (Mon, 17 May 2021)
Revision:17903
Build-Date:2021-05-18 01:31:02
URL:https://josm.openstreetmap.de/svn/trunk

Attachments (0)

Change History (9)

comment:1 by GerdP, 3 years ago

Hmm, the java test is quite complex and doesn't warn when the footway ends on the residential road.
Not sure if that makes sense. I expected a message for a possibly obsolete highway=crossing tag for this case, but it is not produced.

comment:2 by GerdP, 3 years ago

Possible patch to just get rid of the duplicate informational message:

  • src/org/openstreetmap/josm/data/validation/tests/Highways.java

     
    211211        pedestrianWays = 0;
    212212        cyclistWays = 0;
    213213        carsWays = 0;
    214 
     214        if (n.hasTag("highway","crossing") && !n.hasKey("crossing"))
     215            return; // see #20905 handled by mapcss test
    215216        for (Way w : n.getParentWays()) {
    216217            String highway = w.get(HIGHWAY);
    217218            if (highway != null) {

in reply to:  1 comment:3 by skyper, 3 years ago

Replying to GerdP:

Hmm, the java test is quite complex and doesn't warn when the footway ends on the residential road.

No warning with only a single way from one side is on purpose, see #9141.

Not sure if that makes sense. I expected a message for a possibly obsolete highway=crossing tag for this case, but it is not produced.

#9245?

Recently, highway crossings tagging has been discussed on the German forum, but without a clear conclusion when to use crossing=unmarked and/or crossing=no and when to not tag the node at all.

comment:4 by GerdP, 3 years ago

No warning with only a single way from one side is on purpose, see #9141.

Yes, I think's it's correct to not warn, but the mapcss test show's a warning as it doesn't check the existence of ways.

I'd rather remove the mapcss test here.

comment:5 by skyper, 3 years ago

The mapcss tag is about a single missing subkey and it is useful even in cases with a single footway only from one side.

I prefer your patch in silencing the java test if highway=crossing is present.

comment:6 by GerdP, 3 years ago

Milestone: 21.10
Owner: changed from team to GerdP
Status: newassigned

OK, will commit that patch next month.

comment:7 by Don-vip, 3 years ago

Milestone: 21.1021.11

Milestone renamed

comment:8 by GerdP, 3 years ago

Resolution: fixed
Status: assignedclosed

In 18273/josm:

fix #20905: Duplicate informal warnings about missing crossing=*

  • get rid of the duplicate informational message for node with highway=crossing and no crossing=* tag

comment:9 by GerdP, 3 years ago

Milestone: 21.1121.10

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain GerdP.
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.