Skip to content

Commit 663ecd1

Browse files
committed
Add bdd test for broken way in geometry collection
1 parent 330e2cf commit 663ecd1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/bdd/flex/geometry-collection.feature

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,20 @@ Feature: Create geometry collections from relations
9191
| 30 | w20 | NULL |
9292
| 31 | w21 | NULL |
9393

94+
Scenario: No geometry generated for broken way lines, others are there
95+
Given the grid
96+
| 10 | 11 |
97+
| 13 | 12 |
98+
And the OSM data
99+
"""
100+
w20 Nn10,n11,n12,n13,n10
101+
w21 Nn10
102+
w22 Nn10,n11,n13
103+
r30 Tname=three Mw20@,w21@,w22@
104+
"""
105+
When running osm2pgsql flex
106+
107+
Then table osm2pgsql_test_collection contains exactly
108+
| osm_id | name | ST_NumGeometries(geom) | ST_AsText(ST_GeometryN(geom, 1)) | ST_AsText(ST_GeometryN(geom, 2)) |
109+
| 30 | three | 2 | 10, 11, 12, 13, 10 | 10, 11, 13 |
110+

0 commit comments

Comments
 (0)