Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheinbergon committed Aug 23, 2024
1 parent 1ae9ef4 commit 344a22d
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,22 @@ internal class STSimplifyPreserveTopologyTests : GeometryProcessingFunSpec<STSim

testGeometryProcessing(
name = "Calling ST_SimplifyPreserveTopology on a MULTILINESTRING with a tolerance of 40.0",
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))",
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))"
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)
)""".trimIndent(),
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)
)""".trimIndent()
) { function.toleranceInput.value = 40.0 }

testNullGeometryProcessing(
Expand Down

0 comments on commit 344a22d

Please sign in to comment.