#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?
- Have a footway and a residential road crossing with a shared node tagged
highway=crossing
- 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)
follow-up: 3 comment:1 by , 3 years ago
comment:2 by , 3 years ago
Possible patch to just get rid of the duplicate informational message:
-
src/org/openstreetmap/josm/data/validation/tests/Highways.java
211 211 pedestrianWays = 0; 212 212 cyclistWays = 0; 213 213 carsWays = 0; 214 214 if (n.hasTag("highway","crossing") && !n.hasKey("crossing")) 215 return; // see #20905 handled by mapcss test 215 216 for (Way w : n.getParentWays()) { 216 217 String highway = w.get(HIGHWAY); 217 218 if (highway != null) {
comment:3 by , 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.
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 , 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 , 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 , 3 years ago
Milestone: | → 21.10 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
OK, will commit that patch next month.
comment:9 by , 3 years ago
Milestone: | 21.11 → 21.10 |
---|
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.