convexHullCollection static method
Calculates the minimum bounding straight-edged geometry (convex hull) for the geometries in the given collection.
If merge is true, returns a single convex hull that encloses all the geometries in the collection as a single geometry in an array. If merge is false, returns an array of convex hull geometries, one bounding each of the geometries in the input collection. If geometries is empty, returns an empty array.
When input geometries contain curves, the computed convex hull will still consist of straight segments, not curves, so may not fit tightly to the geometry.
Parameters:
geometries
— A collection of geometries.merge
— True indicates that a single convex hull geometry is calculated that encloses all the geometries in the collection. False indicates that one convex hull geometry is calculated for each geometry in the collection.
Return Value: The minimum bounding straight-edged geometry that completely encloses the geometries in the given collection.