ST_CENTROID

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns the Point representing the geometric center of a GEOGRAPHY or GEOMETRY object.

Syntax

ST_CENTROID( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredThe argument must be an expression of type GEOGRAPHY or GEOMETRY.

Returns

Returns a GEOGRAPHY or GEOMETRY object for the Point that represents geometric center of the input object.

Usage notes