tryConvexHull

fun tryConvexHull(geometries: Iterable<Geometry>, merge: Boolean): List<Geometry>

Calculates the minimum bounding 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 the minimum bounding geometry that completely encloses each of the geometries in the given collection as an array of geometries. If geometries is empty, returns an empty array.

Return

The minimum bounding geometry that completely encloses the geometries in the given collection. Returns an empty list in the following circumstances: geometries is empty; the geometries do not have equivalent spatial references; a true curve geometry was used as input when it is not supported by this operator.

Since

200.1.0

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.