diff options
| author | rejbasket <39080670+rejbasket@users.noreply.github.com> | 2024-07-20 09:20:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 09:20:10 +0200 |
| commit | 9c537f33b9eb4d015316a7867a9e6d1eda6cd70c (patch) | |
| tree | b642c94f5a3c12082dc6c725aac99ec47e25b68a /lib/stitches | |
| parent | 67b628b5e337d6d28045fe50261096fa9554f495 (diff) | |
shapely arm fix (#3094)
Diffstat (limited to 'lib/stitches')
| -rw-r--r-- | lib/stitches/auto_fill.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index d3072df3..7e98e434 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -11,7 +11,7 @@ from typing import Iterator import networkx from shapely import geometry as shgeo -from shapely import make_valid, segmentize +from shapely import make_valid, segmentize, set_precision from shapely.ops import snap, unary_union from shapely.strtree import STRtree @@ -487,7 +487,7 @@ def process_travel_edges(graph, fill_stitch_graph, shape, travel_edges): # This makes the distance calculations below a bit faster. We're # not looking for high precision anyway. - outline = shape.boundary.simplify(0.5 * PIXELS_PER_MM, preserve_topology=False) + outline = set_precision(shape.boundary.simplify(0.5 * PIXELS_PER_MM, preserve_topology=False), 0.000001) for ls in travel_edges: # In most cases, ls will be a simple line segment. If we're |
