Skip to content

Commit

Permalink
Wrap the result of convexhull
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Sep 22, 2024
1 parent a930719 commit c88bbaf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions ext/GeometryOpsLibGEOSExt/simple_overrides.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,19 @@ end

# ## Convex hull
function GO.convex_hull(::GEOS, geoms)
return LG.convexhull(
LG.MultiPoint(
collect(
GO.flatten(
x -> GI.convert(LG, x),
GI.PointTrait,
geoms
return _wrap(
LG.convexhull(
LG.MultiPoint(
collect(
GO.flatten(
x -> GI.convert(LG, x),
GI.PointTrait,
geoms
)
)
)
)
);
crs = GI.crs(geoms),
calc_extent = false
)
end

0 comments on commit c88bbaf

Please sign in to comment.