You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note this problem does not occur for people using 0.81.
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2901483;
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2915918;
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2934273;
First query returned landuse=residential,
2nd query, blank on both,
both were expected behaviors, but in this third query, for this relation, I received a landuse=residential and building=yes
even though this relation was a type=multipolygon relation.
Building=yes is attributed for all polygons in this relation although these member areas are not all buildings.
I realize these relations, created for the HOT task manager, are hackish, but they may be other use cases where this happens.
The text was updated successfully, but these errors were encountered:
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.
I'm running postgis 2.0.1, psql 9.1.9, master of osm2pgsql, ubuntu 12.04, 64bit.
Note this problem does not occur for people using 0.81.
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2901483;
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2915918;
SELECT landuse, building FROM planet_osm_polygon WHERE osm_id=-2934273;
First query returned landuse=residential,
2nd query, blank on both,
both were expected behaviors, but in this third query,
for this relation, I received a landuse=residential and building=yes
even though this relation was a type=multipolygon relation.
Building=yes is attributed for all polygons in this relation although these member areas are not all buildings.
I realize these relations, created for the HOT task manager, are hackish, but they may be other use cases where this happens.
The text was updated successfully, but these errors were encountered: