Page MenuHomePhabricator

Accept `site` type when importing OSM relations
Open, Needs TriagePublic

Description

Currently the list of OSM relations that will be imported for the Wikidata ID mapping is limited to these that have one of the following values on the OSM type tag:

multipolygon
route
route_master
restriction
boundary
public_transport
destination_sign
waterway
enforcement
connectivity

De-facto there's also the site{1} value that's used for this tag and it would make sense to import these relations as well to cover the shapes and lines associated with Wikidata QIDs.

Note, that the value is not officially supported yet but the usage seem to have increased over time[2] and the only argument is, that it's not supported by a lot of consumers. So that might be chicken or egg issue.

Taken from a this discussion in de.wikipedia {3].

[1} https://wiki.openstreetmap.org/w/index.php?title=Relation:site
[2] https://taginfo.openstreetmap.org/tags/?key=type&value=site
[3] https://de.wikipedia.org/wiki/Wikipedia_Diskussion:Technische_W%C3%BCnsche/Topw%C3%BCnsche/Bessere_Unterst%C3%BCtzung_von_Geoinformationen/Kartographer#Nur_alte_QIDs?

https://taginfo.openstreetmap.org/tags/?key=type&value=site

Event Timeline

Pikne subscribed.

I think the main difficulty with site is that it's designed to gather multiple geometries (areas, lines, points). So if it's supported then we should also make sure that it's indicated what its different parts actually stand for. The same applies to public_transport and street. In case of boundary and route we keep only the main geometry, respectively area or line, but for these other more complex relation types this probably wouldn't work as well.

As for this list of relation types from imposm mapping, I think it needs some general revision. route_master doesn't seem to be really supported yet (possibly the mapping can be amended somehow to make it actually work). Others in this list, namely restriction, destination_sign, enforcement and connectivity, seem just useless as almost no relation of these types has wikidata tag.