public class ST_ConvexHull
extends GenericUDF
Returns the convex hull of the input geometry as a ST_Geometry object.
Format:
ST_ConvexHull(geometry ST_Geometry) - returns the convex hull of the given geometry as a ST_Geometry object
Example:
select ST_ConvexHull(
ST_MultiPoint(' { "type": "MultiPoint","coordinates": [ [1, 2], [-1, -2], [5, 6] ] }', 0)) from hivetable LIMIT 1;
-- return {"type":"Polygon", "coordinates":[[[5,6],[1,2],[-1,-2],[5,6]]],"crs":{"type":"name","properties":{"name":"EPSG:0"}}}