ST_PERIMETER

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns the length of the perimeter of the polygon(s) in a GEOGRAPHY or GEOMETRY object.

Syntax

ST_PERIMETER( <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 objects, the length is in meters. - For GEOMETRY objects, the length is computed with the same unit used to define the coordinates.

Usage notes