Modify

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)

junction.patch.gz (464 bytes ) - added by delta_foxtrot2 16 years ago.
junction.patch.gz
validator3.patch (1016 bytes ) - added by delta_foxtrot2 16 years ago.
validator3.patch

Download all attachments as: .zip

Change History (14)

comment:1 by delta_foxtrot2, 16 years ago

Cc: delta_foxtrot@… added

comment:2 by delta_foxtrot2, 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 delta_foxtrot2, 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 delta_foxtrot2, 16 years ago

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:

boolean isRoundabout = false;

Then on line 82:

                        if(key.equals("junction"))
                        {
                            isRoundabout = w.get("junction").equals("roundabout");
                            break;
                        }

Finally on line 89, change it from:

if( !hasName )

to:

if( !hasName && !isRoundabout)

comment:5 by AusRick, 16 years ago

Cc: ausrick@… 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.

comment:6 by stoecker, 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.

in reply to:  6 comment:7 by delta_foxtrot2, 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 delta_foxtrot2, 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.

by delta_foxtrot2, 16 years ago

Attachment: junction.patch.gz added

junction.patch.gz

comment:9 by delta_foxtrot2, 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 stoecker, 16 years ago

Resolution: fixed
Status: newclosed

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.

by delta_foxtrot2, 16 years ago

Attachment: validator3.patch added

validator3.patch

comment:11 by delta_foxtrot2, 16 years ago

Resolution: fixed
Status: closedreopened

I did the wrong thing slightly and should have created a new error code, sorry about that latest patch fixes the problem I created.

comment:12 by stoecker, 16 years ago

Resolution: fixed
Status: reopenedclosed

In [o16434].

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.