<p>Thanks for this explaination!</p>
<p>I do not know the exact situation of <a href="https://github.com/settigan" class="user-mention">@settigan</a>, but I want to explain my problem in detail if this might help you or if you know any quick workaround for my problem:</p>
<p>I am using osm2pgsql to import a planet file into a database. I want to import only objects with <code>railway=*</code>, also I want to store every tag including <code>railway=*</code> in hstore without any own tag column. For importing I am using this command:</p>
<p><code>osm2pgsql --create --slim --hstore-all --hstore-match-only --hstore-add-index --style openrailwaymap.style --flat-nodes flatnodes --input-reader pbf planet-latest.osm.pbf</code> (removed some args such as database connection, which are not relevant here)</p>
<p>My style file looks like this:</p>
<pre><code># OsmType Tag DataType Flags
node,way z_order int4 linear # This is calculated during import
way way_area real linear # This is calculated during import
node,way railway text polygon,nocolumn
</code></pre>
<p>As I described above, I removed the <code>area</code> line to avoid that any objects are imported just because of their <code>area=*</code>. Now only nodes and ways with <code>railway=*</code> are imported, except for relations.</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/605#issuecomment-270759805">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7ocP7nkFJINVy_NstPnkxhm6PU4kks5rPV2ggaJpZM4JMFN2">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7ku3EypTO4eQpZlzSWIWGifIBuGXks5rPV2ggaJpZM4JMFN2.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/605#issuecomment-270759805"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rurseekatze in #605: Thanks for this explaination!\r\n\r\nI do not know the exact situation of @settigan, but I want to explain my problem in detail if this might help you or if you know any quick workaround for my problem:\r\n\r\nI am using osm2pgsql to import a planet file into a database. I want to import only objects with `railway=*`, also I want to store every tag including `railway=*` in hstore without any own tag column. For importing I am using this command:\r\n\r\n`osm2pgsql --create --slim --hstore-all --hstore-match-only --hstore-add-index --style openrailwaymap.style --flat-nodes flatnodes --input-reader pbf planet-latest.osm.pbf` (removed some args such as database connection, which are not relevant here)\r\n\r\nMy style file looks like this:\r\n```\r\n# OsmType Tag DataType Flags\r\nnode,way z_order int4 linear # This is calculated during import\r\nway way_area real linear # This is calculated during import\r\nnode,way railway text polygon,nocolumn\r\n```\r\n\r\nAs I described above, I removed the `area` line to avoid that any objects are imported just because of their `area=*`. Now only nodes and ways with `railway=*` are imported, except for relations."}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/osm2pgsql/issues/605#issuecomment-270759805"}}}</script>