[OSM-dev] The evolution of the osm2pgsql style file
Martijn van Oosterhout
kleptog at gmail.com
Wed May 28 13:54:04 BST 2008
There's a still a lot of hardcoded knowledge built into osm2pgsql and
it is in some respects rather inflexible. To that end I would like to
extend osm2pgsql at least in the following ways:
- The output tables specified by the style file also, so that it would
be easy to, for example, create a table with all the railway stuff or
with just waterway tags.
- Include in the style file information about tag values, to control
where it gets stored.
- Information like z_order and roads will then also be specified by
the style file.
My proposed syntax is something like below. Any comments?
>tablename means that tag will activate writing to that table.
Have a nice day,
table roads linestring
table point point
table line linestring
table polygon polygon
table lowzoom_polygon polygon minarea=100000
way highway=motorway,motorway_link text
way highway=trunk,trunk_link text
way railway=rail text
way highway=residential text
node,way name text
way natural=coastline text delete
way natural=water,land text
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the dev