[Tile-serving] [openstreetmap/osm2pgsql] OSM relations and hstore (#605)
Alexander Matheisen
notifications at github.com
Thu Jan 5 21:16:16 UTC 2017
Thanks for this explaination!
I 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:
I 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:
`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)
My style file looks like this:
```
# 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
```
As 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.
--
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#issuecomment-270759805
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170105/5bed4246/attachment.html>
More information about the Tile-serving
mailing list