]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/osm2pgsql/import/broken.feature
release 5.1.0.post6
[nominatim.git] / test / bdd / features / osm2pgsql / import / broken.feature
1 Feature: Import of objects with broken geometries by osm2pgsql
2
3     Scenario: Import way with double nodes
4         When loading osm data
5           """
6           n100 x0 y0
7           n101 x0 y0.1
8           n102 x0.1 y0.2
9           w1 Thighway=primary Nn100,n101,n101,n102
10           """
11         Then place contains
12           | object | class   | type    | geometry!wkt |
13           | W1     | highway | primary | 0 0, 0 0.1, 0.1 0.2 |
14
15     Scenario: Import of ballon areas
16         Given the grid
17          | 2 |  | 3 |
18          | 1 |  | 4 |
19          | 5 |  |   |
20         When loading osm data
21           """
22           n1
23           n2
24           n3
25           n4
26           n5
27           w1 Thighway=unclassified Nn1,n2,n3,n4,n1,n5
28           w2 Thighway=unclassified Nn1,n2,n3,n4,n1
29           w3 Thighway=unclassified Nn1,n2,n3,n4,n3
30           """
31         Then place contains
32           | object | geometry!wkt |
33           | W1     | 1,2,3,4,1,5  |
34           | W2     | (1,2,3,4,1)  |
35           | W3     | 1,2,3,4      |