#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)
Change History (20)
by , 6 years ago
Attachment: | 17475.patch added |
---|
by , 6 years ago
Attachment: | 17475-v2.patch added |
---|
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Cc: | added |
---|
comment:3 by , 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 , 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)?
comment:5 by , 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.
follow-up: 8 comment:6 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Relations is a very common way, if not the preferred way, of mapping streets in France.
follow-up: 11 comment:8 by , 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).
by , 6 years ago
Attachment: | 17475-v3.patch added |
---|
follow-up: 13 comment:10 by , 6 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
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.
follow-up: 12 comment:11 by , 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.
comment:12 by , 6 years ago
comment:13 by , 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:16 by , 6 years ago
Milestone: | → 19.03 |
---|
The patch implements the check and an auto-fix command to delete the relation.