Opened 16 years ago
Closed 16 years ago
#2792 closed enhancement (fixed)
[PATCH] Not show an error on junction=roundabout when it is unnamed
Reported by: | delta_foxtrot2 | Owned by: | team |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core validator | Version: | |
Keywords: | Cc: | delta_foxtrot@…, ausrick@… |
Description
I've sort of solved this issue in tests/UntaggedWay.java on line 67
from:
if(highway != null && NAMED_WAYS.contains(highway))
to:
if(highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("junction"))
Attachments (2)
Change History (14)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Summary: | Not show an error on junction=roundabout when it is unnamed → [PATCH} Not show an error on junction=roundabout when it is unnamed |
---|
comment:3 by , 16 years ago
Summary: | [PATCH} Not show an error on junction=roundabout when it is unnamed → [PATCH] Not show an error on junction=roundabout when it is unnamed |
---|
comment:4 by , 16 years ago
comment:5 by , 16 years ago
Cc: | added |
---|
I support the need to remove roundabout junctions from showing as 'unnamed way' errors.
In Australia roundabouts are an incredibly common type of junction, however naming them is done in the rare circumstance that a roundabout has been provided an official name of some kind.
As a result, multiple false-positives occur in any given editing session.
follow-up: 7 comment:6 by , 16 years ago
Im not sure if this is correct. Here in Germany the roundabouts all either have the ref or the name of the corresponding streets.
comment:7 by , 16 years ago
Replying to stoecker:
Im not sure if this is correct. Here in Germany the roundabouts all either have the ref or the name of the corresponding streets.
I can't comment on what happens in most other countries, I've only been to half a dozen countries and for most of my life I've lived in Australia.
However as ausrick pointed out, in Australia most roundabouts don't have names and they don't have public ref information either, so showing warnings in these cases only generates noise as no information can be filled out for them.
Listing the primary street doesn't really work either as a lot these roundabouts are in residential areas and there is 2 or more streets that are equal to each other, and the mapnik rendering makes them look horrible.
comment:8 by , 16 years ago
Actually the solution to this is simple, make a new tag warning group that people can ignore, this way those that want to see it can, and those that don't won't and everyone will be happy (if that is even remotely possible) :)
I'll figure out some code for this.
comment:9 by , 16 years ago
Ok code done, any junction=roundabout makes a new "Unnamed Junction" warning appear instead of "Unnamed Way" which that group can be ignored, without ignoring all unnamed ways.
comment:10 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In [o16346].
Some notes regarding patches (also for other projects):
- Please don't upload them as gzip if not really necessary. This allows to precheck them in browser
- Please make the diff at least in the make (or ant) directory. patch has a -p option to remove path parts, but no option to add path parts when patching (which means entering path by hand). So longer paths are no problem, but shorter paths are.
comment:11 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I did the wrong thing slightly and should have created a new error code, sorry about that latest patch fixes the problem I created.
I came up with a cleaner solution, although the only official junction currently is a roundabout, a cleaner solution would be to do the following on line 74:
Then on line 82:
Finally on line 89, change it from:
to: