1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Feature: Handling of errors in the Lua script
Background:
Given the input file 'liechtenstein-2013-08-03.osm.pbf'
Scenario: Missing geom transform in table with geometry should lead to an error
Given the lua style
"""
local test_table = osm2pgsql.define_area_table('osm2pgsql_test_lua', {
{ column = 'tags', type = 'hstore' },
{ column = 'geom', type = 'geometry' }
})
function osm2pgsql.process_way(object)
test_table:add_row({
tags = object.tags
})
end
"""
Then running osm2pgsql flex fails
And the error output contains
"""
Missing geometry transformation for column 'geom'
"""
|