diff --git a/tagmaps/classes/alpha_shapes.py b/tagmaps/classes/alpha_shapes.py index 13c42b0..0bc719f 100644 --- a/tagmaps/classes/alpha_shapes.py +++ b/tagmaps/classes/alpha_shapes.py @@ -14,7 +14,7 @@ from typing import List, Optional from scipy.spatial import Delaunay # pylint: disable=E0611 import shapely.geometry as geometry -from shapely.ops import cascaded_union, polygonize +from shapely.ops import unary_union, polygonize from dataclasses import dataclass from tagmaps.classes.compile_output import Compile from tagmaps.classes.shared_structure import ItemCounter @@ -431,5 +431,5 @@ def add_edge(edges, edge_points, coords, i, j): mmulti_line_str = geometry.MultiLineString(edge_points) triangles = list(polygonize(mmulti_line_str)) - return cascaded_union(triangles) # , edge_points + return unary_union(triangles) # , edge_points # return geometry.polygon.asPolygon(edge_points,holes=None)