]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/osm2pgsql/import/broken.feature
add remaining reverse tests
[nominatim.git] / test / bdd / osm2pgsql / import / broken.feature
1 @DB
2 Feature: Import of objects with broken geometries by osm2pgsql
3
4     Scenario: Import way with double nodes
5         When loading osm data
6           """
7           n100 x0 y0
8           n101 x0 y0.1
9           n102 x0.1 y0.2
10           w1 Thighway=primary Nn100,n101,n101,n102
11           """
12         Then place contains
13           | object | class   | type    | geometry |
14           | W1     | highway | primary | 0 0, 0 0.1, 0.1 0.2 |
15
16     @wip
17     Scenario: Import of ballon areas
18         When loading osm data
19           """
20           n1   x0 y0
21           n2   x0 y0.0001
22           n3   x0.00001 y0.0001
23           n4   x0.00001 y0
24           n5   x-0.00001 y0
25           w1 Thighway=unclassified Nn1,n2,n3,n4,n1,n5
26           w2 Thighway=unclassified Nn1,n2,n3,n4,n1
27           w3 Thighway=unclassified Nn1,n2,n3,n4,n3
28           """
29         Then place contains
30           | object | geometrytype |
31           | W1     | ST_LineString |
32           | W2     | ST_Polygon |
33           | W3     | ST_LineString |