diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-06-20 19:01:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 19:01:05 +0200 |
| commit | 663f2e9b7dccd4904b2c66675486b4e77aaf449f (patch) | |
| tree | 817b7bd9ee8258b177969b220061e63d79d53c45 /lib/utils | |
| parent | 5190228798eb8aa95a9d0795b7451ee0f3355f23 (diff) | |
make pytest happy again (#3802)
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/clamp_path.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/clamp_path.py b/lib/utils/clamp_path.py index 6b3a56e5..4c2ce7c5 100644 --- a/lib/utils/clamp_path.py +++ b/lib/utils/clamp_path.py @@ -78,8 +78,8 @@ def clamp_fully_external_path(path, polygon): start = ShapelyPoint(path[0]) end = ShapelyPoint(path[-1]) - start_on_outline = nearest_points(start, polygon.exterior)[1].buffer(0.01, resolution=1) - end_on_outline = nearest_points(end, polygon.exterior)[1].buffer(0.01, resolution=1) + start_on_outline = nearest_points(start, polygon.exterior)[1].buffer(0.01, quad_segs=1) + end_on_outline = nearest_points(end, polygon.exterior)[1].buffer(0.01, quad_segs=1) border_pieces = ensure_multi_line_string(polygon.exterior.difference(MultiPolygon((start_on_outline, end_on_outline)))).geoms border_pieces = fix_starting_point(border_pieces) @@ -139,8 +139,8 @@ def clamp_path_to_polygon(path, polygon): # First, find the two points. Buffer them just a bit to # ensure intersection with the border. - exit_point = last_point_inside.buffer(0.01, resolution=1) - entry_point = ShapelyPoint(segment.coords[0]).buffer(0.01, resolution=1) + exit_point = last_point_inside.buffer(0.01, quad_segs=1) + entry_point = ShapelyPoint(segment.coords[0]).buffer(0.01, quad_segs=1) if not exit_point.intersects(entry_point): # Now break the border into pieces using those points. |
