<p></p>
<h3 dir="auto">Discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3730681" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/osm2pgsql/discussions/1589" data-hovercard-type="discussion" data-hovercard-url="/openstreetmap/osm2pgsql/discussions/1589/hovercard" href="https://github.com/openstreetmap/osm2pgsql/discussions/1589">#1589</a></h3>
<div type="discussions-op-text" dir="auto">
<p dir="auto"><sup>Originally posted by <strong>iandees</strong> December  8, 2021</sup><br>
I'm trying to add a feature to Tilezen's vector-datasource, which uses <a href="https://github.com/tilezen/vector-datasource/blob/master/osm2pgsql.style">an osm2pgsql style</a> file that was created quite a while ago. In there, we have <code>way_area</code> defined <a href="https://github.com/tilezen/vector-datasource/blob/f5a938edfc6cbe52afcda02bc89a21bb2e3a8c9f/osm2pgsql.style#L22">here</a> without any flags specified. Back then, using that style file would add a <code>way_area</code> column to the output postgres tables. Nowadays, it seems to put those in the <code>tags</code> hstore column. The <a href="https://osm2pgsql.org/doc/manual.html#special-tags" rel="nofollow">osm2pgsql docs</a> seem to say that the <code>way_area</code> special tag will create a column (not get added to the hstore)</p>
<p dir="auto">Matching <a href="https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service#load-pbf-data">our vector-datasource docs</a> from back in 2016, I ran:</p>
<pre><code>osm2pgsql --slim --hstore-all -C 1024 -S osm2pgsql.style -d tokyoosm /Users/idees/Downloads/kanto-latest.osm.pbf
</code></pre>
<p dir="auto">... but this time I'm running it with a more-modern version of osm2pgsql from homebrew:</p>
<pre><code>$ 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)
</code></pre>
<p dir="auto">What should I change here to move that way_area entry to a column?</p></div><p dir="auto"></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1590">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353SPA6HZJIERDMFLR2TUQHNJXANCNFSM5JY3LU3Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AA6353UFBYB5XJ5URYRZLHTUQHNJXA5CNFSM5JY3LU32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QBNQS3A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1590",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1590",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>