snowflake.snowpark.functions.st_intersection¶
- snowflake.snowpark.functions.st_intersection(geography_expression_1: Union[snowflake.snowpark.column.Column, str], geography_expression_2: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.44.0/src/snowflake/snowpark/_functions/scalar_functions.py#L2546-L2572)¶
Returns the intersection of two GEOGRAPHY objects. If the objects do not intersect, returns an empty geometry collection.
- Parameters:
geography_expression_1 (ColumnOrName) – A column containing GEOGRAPHY objects or a geography expression.
geography_expression_2 (ColumnOrName) – A column containing GEOGRAPHY objects or a geography expression.
- Returns:
A column containing the intersection of the two input GEOGRAPHY objects as a GEOGRAPHY object.
- Return type:
- Examples::