Skip to content

Commit 1314cbb

Browse files
authored
Merge pull request #1740 from joto/test-fix-polygon-winding-order
Fix winding order in test polygons
2 parents 2da408f + 8a2ac56 commit 1314cbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/bdd/flex/invalid-geometries.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Feature: Test handling of invalid geometries
8383
Then table osm2pgsql_test_line has 0 rows
8484
Then table osm2pgsql_test_polygon contains exactly
8585
| osm_id | ST_AsText(geom) |
86-
| 20 | (10, 11, 12, 10) |
87-
| 21 | (10, 11, 12, 10) |
86+
| 20 | (10, 12, 11, 10) |
87+
| 21 | (10, 12, 11, 10) |
8888

8989

9090
Scenario: Area with self-intersection from way should be ignored

tests/bdd/steps/steps_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __repr__(self):
157157
class DBValueGeometry:
158158

159159
def __init__(self, value, props, factory):
160-
self.precision = float(props) if props else 0.01
160+
self.precision = float(props) if props else 0.0001
161161
self.orig_value = value
162162
self.set_coordinates(value)
163163
self.factory = factory

0 commit comments

Comments
 (0)