]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/osm2pgsql/import/broken.feature
fix address interpolation for self-intersecting ways
[nominatim.git] / tests / features / osm2pgsql / import / broken.feature
1 @DB
2 Feature: Import of objects with broken geometries by osm2pgsql
3
4     @Fail
5     Scenario: Import way with double nodes
6         Given the osm nodes:
7           | id  | geometry
8           | 100 | 0 0
9           | 101 | 0 0.1
10           | 102 | 0.1 0.2
11         And the osm ways:
12           | id | tags                  | nodes
13           | 1  | 'highway' : 'primary' | 100 101 101 102
14         When loading osm data
15         Then table place contains
16           | object | class   | type    | geometry
17           | W1     | highway | primary | (0 0, 0 0.1, 0.1 0.2)
18
19     Scenario: Import of ballon areas
20         Given the osm nodes:
21           | id  | geometry
22           | 1   | 0 0
23           | 2   | 0 0.0001
24           | 3   | 0.00001 0.0001
25           | 4   | 0.00001 0
26           | 5   | -0.00001 0
27         And the osm ways:
28           | id | tags                       | nodes
29           | 1  | 'highway' : 'unclassified' | 1 2 3 4 1 5
30           | 2  | 'highway' : 'unclassified' | 1 2 3 4 1
31           | 3  | 'highway' : 'unclassified' | 1 2 3 4 3
32         When loading osm data
33         Then table place contains
34           | object | geometrytype
35           | W1     | ST_LineString
36           | W2     | ST_Polygon
37           | W3     | ST_LineString