[Tile-serving] [openstreetmap/osm2pgsql] OSM relations and hstore (#605)

settigan notifications at github.com
Thu Jul 14 04:55:22 UTC 2016


Hello, I have a question regarding the style file, OSM Relations and the hstore option in osm2pgsql.
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.
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. 
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.
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.

stylefile
![stylefile](https://cloud.githubusercontent.com/assets/16205332/16828339/ceaebf36-49c9-11e6-86d3-393839ea8d73.png)

Output
![relationproblem](https://cloud.githubusercontent.com/assets/16205332/16828359/f452fcf2-49c9-11e6-8f63-2823084f619b.png)


---
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/605
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160713/7727c637/attachment.html>


More information about the Tile-serving mailing list