File: test_output_flex_relation_combinations.lua

package info (click to toggle)
osm2pgsql 2.1.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,652 kB
  • sloc: cpp: 59,934; python: 1,039; ansic: 763; sh: 25; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

local rel_table = osm2pgsql.define_relation_table('osm2pgsql_test_relations', {
    { column = 'tags', type = 'hstore' }
})

function osm2pgsql.select_relation_members(relation)
    return { ways = osm2pgsql.way_member_ids(relation) }
end

function osm2pgsql.process_relation(object)
    rel_table:insert({
        tags = object.tags
    })
end