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
linear,z_index=9,>roads,>line
way       highway=trunk,trunk_link                   text
linear,z_index=8,>roads,>line
way       railway=rail                                         text
linear,z_index=5,>roads,>line
way       highway=residential                           text
linear,z_index=3,>line
node,way  name                                              text
way       natural=coastline                               text    delete
way       natural=water,land                             text
polygon,>polygon,>lowzoom_polygon

-- 
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/

_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

Reply via email to