Patch-Source: https://github.com/shapely/shapely/commit/65e6a6c5b4a60a6e43a0f94503d67373a8daea39 -- From 65e6a6c5b4a60a6e43a0f94503d67373a8daea39 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 13 Jun 2023 10:07:34 +0200 Subject: [PATCH] TST: update parallel_offset (offset_curve) tests for GEOS main (minimum quad_segs of 8) (#1831) --- shapely/tests/legacy/test_parallel_offset.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shapely/tests/legacy/test_parallel_offset.py b/shapely/tests/legacy/test_parallel_offset.py index f0614f40b..26ae927c2 100644 --- sa/tests/test_parallel_offset.py.orig +++ b/tests/test_parallel_offset.py @@ -29,19 +29,18 @@ assert_geometries_equal(line1.parallel_offset(5), right) line2 = LineString([(0, 0), (5, 0), (5, -5)]) - assert_geometries_equal(line2.parallel_offset(2, 'left', resolution=1), + assert_geometries_equal(line2.parallel_offset(2, "left", join_style=3), LineString([(0, 2), (5, 2), (7, 0), (7, -5)])) - assert_geometries_equal(line2.parallel_offset(2, 'left', join_style=2, - resolution=1), + assert_geometries_equal(line2.parallel_offset(2, "left", join_style=2), LineString([(0, 2), (7, 2), (7, -5)])) # offset_curve alias assert_geometries_equal( - line1.offset_curve(2, quad_segs=1), - line1.parallel_offset(2, 'left', resolution=1) + line1.offset_curve(2, quad_segs=10), + line1.parallel_offset(2, "left", resolution=10), ) assert_geometries_equal( - line1.offset_curve(-2, quad_segs=1), - line1.parallel_offset(2, 'right', resolution=1) + line1.offset_curve(-2, join_style="mitre"), + line1.parallel_offset(2, "right", join_style=2), ) def test_parallel_offset_linear_ring(self):