snowflake.snowpark.functions.st_geometryfromwkb¶
- snowflake.snowpark.functions.st_geometryfromwkb(varchar_or_binary_expression: Union[snowflake.snowpark.column.Column, str], srid: Union[snowflake.snowpark.column.Column, str] = None, allow_invalid: Union[snowflake.snowpark.column.Column, str] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.48.0/src/snowflake/snowpark/_functions/scalar_functions.py#L3759-L3819)¶
Parses a WKB (well-known binary) or EWKB (extended well-known binary) representation of a geometry and returns a GEOMETRY object.
- Parameters:
varchar_or_binary_expression (ColumnOrName) – A VARCHAR or BINARY expression containing the WKB or EWKB representation of a geometry.
srid (ColumnOrName, optional) – The SRID (spatial reference system identifier) to use for the geometry. If not specified, the SRID from the EWKB is used, or 0 if the input is WKB.
allow_invalid (ColumnOrName, optional) – If TRUE, allows invalid geometries to be processed. If FALSE or not specified, invalid geometries will cause an error.
- Returns:
A GEOMETRY object parsed from the WKB/EWKB representation.
- Return type:
- Examples::