[Tile-serving] [openstreetmap/osm2pgsql] `way_area` in hstore instead of a separate column now? (Issue #1590)
Jochen Topf
notifications at github.com
Fri Dec 10 11:06:03 UTC 2021
### Discussed in https://github.com/openstreetmap/osm2pgsql/discussions/1589
<div type='discussions-op-text'>
<sup>Originally posted by **iandees** December 8, 2021</sup>
I'm trying to add a feature to Tilezen's vector-datasource, which uses [an osm2pgsql style](https://github.com/tilezen/vector-datasource/blob/master/osm2pgsql.style) file that was created quite a while ago. In there, we have `way_area` defined [here](https://github.com/tilezen/vector-datasource/blob/f5a938edfc6cbe52afcda02bc89a21bb2e3a8c9f/osm2pgsql.style#L22) without any flags specified. Back then, using that style file would add a `way_area` column to the output postgres tables. Nowadays, it seems to put those in the `tags` hstore column. The [osm2pgsql docs](https://osm2pgsql.org/doc/manual.html#special-tags) seem to say that the `way_area` special tag will create a column (not get added to the hstore)
Matching [our vector-datasource docs](https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service#load-pbf-data) from back in 2016, I ran:
```
osm2pgsql --slim --hstore-all -C 1024 -S osm2pgsql.style -d tokyoosm /Users/idees/Downloads/kanto-latest.osm.pbf
```
... but this time I'm running it with a more-modern version of osm2pgsql from homebrew:
```
$ osm2pgsql --version
2021-12-08 12:45:27 osm2pgsql version 1.5.1
Build: Release
Compiled using the following library versions:
Libosmium 2.17.0
Proj [API 4] Rel. 7.2.1, January 1st, 2021
Lua 5.1.4 (LuaJIT 2.1.0-beta3)
```
What should I change here to move that way_area entry to a column?</div>
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1590
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20211210/0a56899a/attachment.htm>
More information about the Tile-serving
mailing list