File: script-failure.feature

package info (click to toggle)
osm2pgsql 1.8.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,536 kB
  • sloc: cpp: 46,707; ansic: 1,804; python: 797; sh: 25; makefile: 14
file content (25 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
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'
            """