I’m using osm2pgsql to fill a POSTGIS DB on a daily basis with the GeoFrabrik .osm-Export of Luxembourg. It’s working fine and I plan to show all OSM tags of an item in a popup on the map.
I’ve seen that osm2pgsql unfortunately creates additional tags in the tags column of the osm_line table. These tags are:
z_order, route_name, route_pref_color
I know that this additional tag generation is controlled via style file and so I commented out the appropriate lines in default.style of osm2pgsql.
But they don’t disappear and so my osm tags table is a little bit confusing because of these additional tags not present in OSM database.
thx for that hint, but my problem is different: I want to get rid of some parts of the column (type hstore), which contains the OSM tags in the format “key”=>“value”, e.g.
ooops, sorry, I missed your “(…) creates additional tags in the tags column”
I do not use hstore additionnal storage in the tags column mysel so haven’t a clue of why are those non-tags added to this column.
Either you feel brave and can dive into some C code, or I asume there might be a request to drop a part of the hash after the import in order to avoid touching osm2pgsql