We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115e748 commit ead1020Copy full SHA for ead1020
1 file changed
flex-config/with-schema.lua
@@ -8,13 +8,13 @@
8
9
local dtable = osm2pgsql.define_way_table('data', {
10
{ column = 'tags', type = 'jsonb' },
11
- { column = 'geom', type = 'geometry' },
+ { column = 'geom', type = 'linestring' },
12
}, { schema = 'myschema' })
13
14
function osm2pgsql.process_way(object)
15
- dtable:add_row({
+ dtable:insert({
16
tags = object.tags,
17
- geom = { create = 'line' }
+ geom = object:as_linestring()
18
})
19
end
20
0 commit comments