ST_ENVELOPE

functionsupportedCore SQL functionsdeprecated

docs.snowflake.com ↗

Geospatial functions

Returns the minimum bounding box (a rectangular “envelope”) that encloses a specified GEOGRAPHY or GEOMETRY object. This function has been deprecated for GEOGRAPHY objects. The use of this function with GEOGRAPHY objects will be obsoleted in a future release (TBD). As an alternative, for GEOGRAPHY objects, use ST_XMIN, ST_XMAX, ST_YMIN, and ST_YMAX to determine the vertices of the bounding box around an input GEOGRAPHY object.

Syntax

ST_ENVELOPE( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredThe argument must be of type GEOGRAPHY or GEOMETRY.

Returns

The function returns a value of type GEOGRAPHY or GEOMETRY that represents the minimum bounding box around the input object.

Usage notes