]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/osm2pgsql/import/broken.feature
fix compilation of PG module for PostgreSQL 16
[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     Scenario: Import of ballon areas
17         When loading osm data
18           """
19           n1   x0 y0
20           n2   x0 y0.0001
21           n3   x0.00001 y0.0001
22           n4   x0.00001 y0
23           n5   x-0.00001 y0
24           w1 Thighway=unclassified Nn1,n2,n3,n4,n1,n5
25           w2 Thighway=unclassified Nn1,n2,n3,n4,n1
26           w3 Thighway=unclassified Nn1,n2,n3,n4,n3
27           """
28         Then place contains
29           | object | geometrytype |
30           | W1     | ST_LineString |
31           | W2     | ST_Polygon |
32           | W3     | ST_LineString |