snowflake.snowpark.functions.st_geographyfromwkt¶
- snowflake.snowpark.functions.st_geographyfromwkt(varchar_expression: Union[snowflake.snowpark.column.Column, str], allow_invalid: Union[snowflake.snowpark.column.Column, str] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/_functions/scalar_functions.py#L3717-L3748)¶
Parses a WKT (well-known text) or EWKT (extended well-known text) expression and returns a GEOGRAPHY object.
- Parameters:
varchar_expression (ColumnOrName) – The WKT or EWKT representation of a geography object.
allow_invalid (ColumnOrName, optional) – A boolean expression that specifies whether to allow invalid geometries. If True, invalid geometries are returned as NULL instead of raising an error.
- Returns:
A GEOGRAPHY object parsed from the input WKT string.
- Return type:
- Examples::