From c88bbaf3aa7c153779b545c3a8ba894760ca9084 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Sat, 21 Sep 2024 10:36:07 -0700 Subject: [PATCH] Wrap the result of convexhull --- ext/GeometryOpsLibGEOSExt/simple_overrides.jl | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ext/GeometryOpsLibGEOSExt/simple_overrides.jl b/ext/GeometryOpsLibGEOSExt/simple_overrides.jl index 97353a926..815e0dbae 100644 --- a/ext/GeometryOpsLibGEOSExt/simple_overrides.jl +++ b/ext/GeometryOpsLibGEOSExt/simple_overrides.jl @@ -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 \ No newline at end of file