[Tile-serving] [osm2pgsql] Relations = building (#254)

Mark Cupitt notifications at github.com
Thu Jan 15 15:38:18 UTC 2015


I am working on a project with 3D buildings. 

Based on the Docs for OSM2PGSQL, it says ..

`way will also apply to relations with type=multipolygon, type=boundary, or type=route; all other relations are ignored by osm2pgsql.`

I just want to check if that is still the case. Building relations are tagged as type=building. there are well over 6000 building relations, and growing, in the database now.

I would guess that all the ways are still imported, but are not linked in any way, so no way to tell they are part of the same building, except possibly a centroid or intersects/contains in postgis, which may not be all that accurate

It seems that the issue is that the ways do not have any link back to the relation, so it is impossible to tell what goes with what.

Has anyone come up with any bright ideas on this?

One idea I had was to parse the pbf for relations only, then update the ways with a link to each other is a special "group column" where a unique Id can link ways and points.

Would love to hear if anyone has any thoughts on how to approach this.

Cheers

Mark


---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/254
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150115/1de7ef97/attachment.html>


More information about the Tile-serving mailing list