We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9612089 commit 24f2e72Copy full SHA for 24f2e72
1 file changed
libpysal/cg/alpha_shapes.py
@@ -529,11 +529,9 @@ def alpha_shape_auto(
529
if return_circles:
530
return_radius = True
531
if xys.shape[0] < 4:
532
- from shapely import ops
533
-
534
if xys.shape[0] == 3:
535
- multipoint = ops.cascaded_union([geom.Point(xy) for xy in xys])
536
- alpha_shape = multipoint.convex_hull.buffer(0)
+ multipoint = geom.MultiPoint(xys)
+ alpha_shape = multipoint.convex_hull
537
else:
538
alpha_shape = geom.Polygon([])
539
if xys.shape[0] == 1:
0 commit comments