Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17475 closed enhancement (fixed)

[Patch] Validator should mark obsolete type=associatedStreet relations

Reported by: GerdP Owned by: team
Priority: normal Milestone: 19.03
Component: Core validator Version:
Keywords: Cc: Klumbumbus

Description

Relations of type associatedStreet are obsolete when all members are "fully" tagged.
In case of highway that means the highway has a name tag, in case of addresses (buildings)
addr:housenumber and addr:street should exist.
See also https://forum.openstreetmap.org/viewtopic.php?id=65510

Attachments (4)

17475.patch (3.2 KB ) - added by GerdP 6 years ago.
17475-v2.patch (3.4 KB ) - added by GerdP 6 years ago.
17475-v3.patch (6.2 KB ) - added by GerdP 6 years ago.
17475-v4.patch (6.1 KB ) - added by GerdP 6 years ago.
fix some checkstyle / javadoc issues

Download all attachments as: .zip

Change History (20)

by GerdP, 6 years ago

Attachment: 17475.patch added

by GerdP, 6 years ago

Attachment: 17475-v2.patch added

comment:1 by GerdP, 6 years ago

The patch implements the check and an auto-fix command to delete the relation.

comment:2 by GerdP, 6 years ago

Cc: Klumbumbus added

comment:3 by GerdP, 6 years ago

I think I should add code to check if the relation has more tags. If e.g. a name:fr tag is found all members should also have the corresponding tag (addr:street:fr or name:fr).
If not, it should not be considered obsolete.

comment:4 by mkoniecz, 6 years ago

While I support eradication of associatedStreet relations and at least in my region (Poland) there is no support for them to continue existing note that https://wiki.openstreetmap.org/wiki/Talk:Relation:associatedStreet#Deprecation_of_associatedStreet_in_Germany asked "Is there a consensus within the German mapper-community"

Maybe it would be worth checking is there support for starting to remove this relations also in other places of the world?

Or is it obviously bad idea and purging it may be started without discussing it (though in that case what was the point of this poll)?

Last edited 6 years ago by mkoniecz (previous) (diff)

comment:5 by GerdP, 6 years ago

The relations are used in a way that you cannot remove them, see e.g.
https://www.openstreetmap.org/relation/8161616
The houses don't have the addr:street tag, you have to evaluate the relation to find it.

comment:6 by Don-vip, 6 years ago

Resolution: wontfix
Status: newclosed

Relations is a very common way, if not the preferred way, of mapping streets in France.

comment:7 by GerdP, 6 years ago

@Vincent: What if I reduce the check to relations in Germany?

in reply to:  6 ; comment:8 by Klumbumbus, 6 years ago

After https://wiki.openstreetmap.org/wiki/Talk:Relation:associatedStreet#Deprecation_of_associatedStreet_in_Germany has ended and the german wiki page was changed we can add a deprecated warning for all associated streets relations in germany. However thats different from what this ticket is about (removing the relation if addr:street is already on every member).

comment:9 by Don-vip, 6 years ago

OK if only restricted to Germany.

by GerdP, 6 years ago

Attachment: 17475-v3.patch added

comment:10 by GerdP, 6 years ago

Resolution: wontfix
Status: closedreopened

With v3 the test is only done in Germany. I've also added code to check if the relation has tags which should appear on the members.
All relation tags starting with addr: should appear on the house members. Others relation tags (except for type, name or source)
stop the processing so that the relation is not marked as obsolete. For example, ref:FR:FANTOIR=* is often used in associatedStreet relations.

by GerdP, 6 years ago

Attachment: 17475-v4.patch added

fix some checkstyle / javadoc issues

in reply to:  8 ; comment:11 by GerdP, 6 years ago

Replying to Klumbumbus:

After https://wiki.openstreetmap.org/wiki/Talk:Relation:associatedStreet#Deprecation_of_associatedStreet_in_Germany has ended and the german wiki page was changed we can add a deprecated warning for all associated streets relations in germany. However thats different from what this ticket is about (removing the relation if addr:street is already on every member).

Yes, that is very different, but keep it in mind or open a new ticket.
This patch is meant to assist the mappers in Germany which have already started to remove obsolete relations.

in reply to:  11 comment:12 by Klumbumbus, 6 years ago

Replying to GerdP:

Yes, that is very different, but keep it in mind or open a new ticket.

--> #17484

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

Replying to GerdP:

stop the processing so that the relation is not marked as obsolete. For example, ref:FR:FANTOIR=* is often used in associatedStreet relations.

Thank you. FANTOIR is a useful tag in France which allows us to follow progress of address mapping.

comment:14 by GerdP, 6 years ago

Resolution: fixed
Status: reopenedclosed

In 14906/josm:

fix #17475: Validator should mark obsolete type=associatedStreet relations

comment:15 by GerdP, 6 years ago

In 14914/josm:

see #17475: Improve test for obsolete associatedStreet relations

  • if member is a multipolygon relation try to find location, for other relation types location is not computed
  • if location of any member is not computed the relation is not marked obsolete

comment:16 by Don-vip, 6 years ago

Milestone: 19.03

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.