[Tile-serving] [osm2pgsql] osm2pgsql applies building=yes to all members of a multipolygon (for some relations). (#52)

apmon notifications at github.com
Fri Jul 19 17:45:14 UTC 2013


The culpable code is likely https://github.com/openstreetmap/osm2pgsql/blob/master/tagtransform.c#L525

If it encounters a multipolygon relation with no tags of its own, it copies all of the tags of the outer member ways over and applies it to the multipolygon. So as long as the multi-polygon doesn't have its own tags and there is at least one outer way with building=yes, then the polygon in the db will have building=yes set.

I am not sure if this is actually a bug. If the outer ways aren't all of identical type, then the multi-polygon probably really should have the relevant tags set directly.

The new lua based tagtransform behaves slightly different in this respect by default (as I am not sure there is a well defined behaviour in these cases). Furthermore, there you can specify exactly how you want it to behave in the lua script.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/52#issuecomment-21265264
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130719/bc037ecd/attachment.html>


More information about the Tile-serving mailing list