1-- This config example file is released into the Public Domain. 2 3-- This configuration for the flex output shows how to define a table in 4-- a PostgreSQL schema. 5-- 6-- This config file expects that you have a schema called `myschema` in 7-- your database (created with something like `CREATE SCHEMA myschema;`). 8 9local dtable = osm2pgsql.define_way_table('data', { 10 { column = 'tags', type = 'jsonb' }, 11 { column = 'geom', type = 'geometry' }, 12 }, { schema = 'myschema' }) 13 14function osm2pgsql.process_way(object) 15 dtable:add_row({ 16 tags = object.tags, 17 geom = { create = 'line' } 18 }) 19end 20 21