<p>Hello, I have a question regarding the style file, OSM Relations and the hstore option in osm2pgsql.<br>
I would like to filter my imported data before it gets in my database. For that I use the stylefile and define the tags I would like to keep. I also would like to keep the other tags of the elements which I set in the stylefile thats why I use the hstore option --hstore-match-only. It seems to work for my node table but my line and polygon tables are full with data which I don't need.<br>
Unfortunately it seems as if osm2pgsql pushes all the OSM-Relations in my db wheter there is a connection to my tags in the stylefile or not. <br>
Is it possible to use a filter function for the relations similar to the filter in the style file? I actually thought the relations would be filtered as well like the nodes and ways.<br>
I also read about the luna file but it seems a little bit complicated so I thought there might be an easier way which I haven't discovered yet. Any help is appreciated.</p>
<p>stylefile<br>
<a href="https://cloud.githubusercontent.com/assets/16205332/16828339/ceaebf36-49c9-11e6-86d3-393839ea8d73.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/16205332/16828339/ceaebf36-49c9-11e6-86d3-393839ea8d73.png" alt="stylefile" style="max-width:100%;"></a></p>
<p>Output<br>
<a href="https://cloud.githubusercontent.com/assets/16205332/16828359/f452fcf2-49c9-11e6-8f63-2823084f619b.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/16205332/16828359/f452fcf2-49c9-11e6-8f63-2823084f619b.png" alt="relationproblem" style="max-width:100%;"></a></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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AD2-7qR5VhvdyqnLwUd7_zu8kq-2dh9-ks5qVcE6gaJpZM4JMFN2">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7vBsjx6xvI1C-3EbqG2tllE18rWvks5qVcE6gaJpZM4JMFN2.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"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>