ST_COLLECT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

There are two forms of ST_COLLECT: - Scalar: This function combines two GEOGRAPHY objects into one. - Aggregate: This function combines all the GEOGRAPHY objects in a column into one GEOGRAPHY object.

Syntax

Scalar:

    ST_COLLECT( <geography_expression_1> , <geography_expression_2> )

Aggregate:

    ST_COLLECT( <geography_expression_1> )

Parameters

NameRequiredDescription
geography_expression_1requiredA GEOGRAPHY object.
geography_expression_2requiredA GEOGRAPHY object.

Returns

The function returns a value of type GEOGRAPHY.

Usage notes