Closed ghtyrant closed 5 years ago
Your columns are missing a key
https://imposm.org/docs/imposm3/latest/mapping.html#key
You should also check out the hstore
option, which might be more efficient.
Thank you, that fixed the issue. Should've read more thoroughly, as I was under the impression that key
is only necessary if the name deviates from the actual tag's name.
Context
We are importing OSM data using imposm and have some "general-purpose" tables that simply import all polygons. Our mapping looks like this:
Expected Behavior
I expect our custom columns (e.g. "water") of the tables above to contain values even if the mapping is set to
__any__: [__any__]
Actual Behavior
All columns except osm_id, way and tags are empty. The tags contain valid data, they also contain the data which I would expect to also be stored in the columns.
Tables that have an explicit mapping work as expected.
Steps to Reproduce
SELECT * FROM planet_osm_polygon WHERE levels != '';
. For comparison, runSELECT * FROM osm_building WHERE levels != '';
Your Environment