@@ -16,8 +16,22 @@ internal class STSimplifyPreserveTopologyTests : GeometryProcessingFunSpec<STSim
16
16
17
17
testGeometryProcessing(
18
18
name = " Calling ST_SimplifyPreserveTopology on a MULTILINESTRING with a tolerance of 40.0" ,
19
- wkt = " MULTILINESTRING ((20 180, 20 150, 50 150, 50 100, 110 150, 150 140, 170 120), (20 10, 80 30, 90 120), (90 120, 130 130), (130 130, 130 70, 160 40, 180 60, 180 90, 140 80), (50 40, 70 40, 80 70, 70 60, 60 60, 50 50, 50 40))" ,
20
- expected = " MULTILINESTRING((20 180,50 100,110 150,170 120),(20 10,90 120),(90 120,130 130),(130 130,130 70,160 40,180 90,140 80),(50 40,70 40,80 70,60 60,50 40))"
19
+ wkt = """
20
+ MULTILINESTRING (
21
+ (20 180, 20 150, 50 150, 50 100, 110 150, 150 140, 170 120),
22
+ (20 10, 80 30, 90 120),
23
+ (90 120, 130 130),
24
+ (130 130, 130 70, 160 40, 180 60, 180 90, 140 80),
25
+ (50 40, 70 40, 80 70, 70 60, 60 60, 50 50, 50 40)
26
+ )""" .trimIndent(),
27
+ expected = """
28
+ MULTILINESTRING(
29
+ (20 180,50 100,110 150,170 120),
30
+ (20 10,90 120),
31
+ (90 120,130 130),
32
+ (130 130,130 70,160 40,180 90,140 80),
33
+ (50 40,70 40,80 70,60 60,50 40)
34
+ )""" .trimIndent()
21
35
) { function.toleranceInput.value = 40.0 }
22
36
23
37
testNullGeometryProcessing(
0 commit comments