ST_LENGTH

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns the great circle length of the LineString(s) in a GEOGRAPHY object or the Euclidean length of the LineString(s) in a GEOMETRY object.

Syntax

ST_LENGTH( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredThe argument must be of type GEOGRAPHY or GEOMETRY.

Returns

Returns a REAL value, which represents the length: - For GEOGRAPHY input values, the length is in meters. - For GEOMETRY input values, the length is computed with the same units used to define the input coordinates.

Usage notes