snowflake.snowpark.functions.st_asgeojson¶
- snowflake.snowpark.functions.st_asgeojson(geography_or_geometry_expression: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.45.0/src/snowflake/snowpark/_functions/scalar_functions.py#L1740-L1762)¶
Returns the GeoJSON representation of a GEOGRAPHY or GEOMETRY object.
- Parameters:
geography_or_geometry_expression (ColumnOrName) – The GEOGRAPHY or GEOMETRY data.
- Returns:
The GeoJSON representation as a string.
- Return type:
Example: