convexHull function

Returns the convex hull of a geometry. It represents the minimum convex geometry that encloses all geometries within the set.

Syntax

convexHull( a, b )

Arguments

a → geometry a → geometry

Example

  geomToWKT( convexHull( geomFromWKT( 'LINESTRING(3 3 , 4 4 , 4 10)' )) )   → returns POLYGON((3 3,4 10,4 4,3 3))