]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/db/import/entrances.feature
use extra place_entrance table
[nominatim.git] / test / bdd / features / db / import / entrances.feature
1 Feature: Entrance nodes are recorded
2     Test that imported entrance nodes are saved
3
4     Scenario: A building with two entrances
5         Given the grid
6           | 1 | 2 |
7           | 4 | 3 |
8         Given the places
9           | osm | class    | type  | geometry    | extratags           |
10           | W1  | building | yes   | (1,2,3,4,1) |                     |
11           | N1  | entrance | main  | 1           | 'wheelchair': 'yes' |
12           | N2  | entrance | yes   | 3           |                     |
13         And the ways
14           | id | nodes     |
15           | 1  | 1,2,3,4,1 |
16         When importing
17         Then placex contains exactly
18          | object | place_id |
19          | W1     | 1        |
20         Then placex_entrance contains exactly
21          | place_id | osm_id | type | location!wkt | extratags             |
22          | 1        | 1      | main | 1            | {'wheelchair': 'yes'} |
23          | 1        | 2      | yes  | 3            | {}                    |