g_envelope function

Obtain the 2D or 3D bounding envelope for input geometries