ST_SYMDIFFERENCE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Given two input GEOGRAPHY objects, returns a GEOGRAPHY object that represents the set of points from both input objects that are not part of the intersection of the objects (i.e. the symmetric difference of the two objects).

Syntax

ST_SYMDIFFERENCE( <geography_expression_1> , <geography_expression_2> )

Parameters

NameRequiredDescription
geography_expression_1requiredA GEOGRAPHY object.
geography_expression_2requiredA GEOGRAPHY object.

Returns

The function returns a value of type GEOGRAPHY. If geography_expression_1 and geography_expression_2 are equal (i.e. the symmetric difference is an empty set of points), the function returns NULL.

Usage notes

See also

Referenced by