11-- This config example file is released into the Public Domain.
22
3- -- This is a very simple Lua config for the Flex Backend not intended for
3+ -- This is a very simple Lua config for the Flex output not intended for
44-- real-world use. Look at and understand "simple.lua" first, before looking
55-- at this file. This file will show some options around geometry processing.
66-- After you have understood this file, go on to "data-types.lua".
77
88local tables = {}
99
1010tables .pois = osm2pgsql .define_node_table (' pois' , {
11- { column = ' tags' , type = ' hstore ' },
11+ { column = ' tags' , type = ' jsonb ' },
1212 -- Create a geometry column for point geometries. The geometry will be
1313 -- in web mercator, EPSG 3857.
1414 { column = ' geom' , type = ' point' },
1515})
1616
1717tables .ways = osm2pgsql .define_way_table (' ways' , {
18- { column = ' tags' , type = ' hstore ' },
18+ { column = ' tags' , type = ' jsonb ' },
1919 -- Create a geometry column for linestring geometries. The geometry will
2020 -- be in latlong (WGS84), EPSG 4326.
2121 { column = ' geom' , type = ' linestring' , projection = 4326 },
2222})
2323
2424tables .polygons = osm2pgsql .define_area_table (' polygons' , {
25- { column = ' tags' , type = ' hstore ' },
25+ { column = ' tags' , type = ' jsonb ' },
2626 { column = ' geom' , type = ' geometry' },
2727 -- The 'area' type is used to store the calculated area of a polygon
2828 -- feature. This can be used in style sheets to only render larger polygons
@@ -34,7 +34,7 @@ tables.polygons = osm2pgsql.define_area_table('polygons', {
3434
3535tables .boundaries = osm2pgsql .define_relation_table (' boundaries' , {
3636 { column = ' type' , type = ' text' },
37- { column = ' tags' , type = ' hstore ' },
37+ { column = ' tags' , type = ' jsonb ' },
3838 -- Boundaries will be stitched together from relation members into long
3939 -- linestrings. This is a multilinestring column because sometimes the
4040 -- boundaries are not contiguous.
0 commit comments