ST_GEOMETRYFROMWKB

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functionsConversion functions

Parses a WKB (well-known binary) or EWKB (extended well-known binary) input and returns a value of type GEOMETRY.

Syntax

supportedpartialnot supportednot scored

ST_GEOMETRYFROMWKB( <varchar_or_binary_expression> [ , <srid> ]  [ , <allow_invalid> ] )

ST_GEOMFROMWKB( <varchar_or_binary_expression> [ , <srid> ]  [ , <allow_invalid> ] )

ST_GEOMETRYFROMEWKB( <varchar_or_binary_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMFROMEWKB( <varchar_or_binary_expression> [ , <srid> ] [ , <allow_invalid> ] )

Parameters

NameRequiredDescription
varchar_or_binary_expressionrequiredThe argument must be a string or binary expression in WKB or EWKB that represents a valid geospatial object. A string expression must be in hexadecimal format (without a leading 0x).
sridoptionalThe integer value of the SRID to use.
allow_invalidoptionalIf TRUE, specifies that the function returns a GEOGRAPHY or GEOMETRY object, even when the input shape isn’t valid and can’t be repaired. For more information, see Specifying how invalid geospatial shapes are handled.

Returns

The function returns a value of type GEOMETRY.

Usage notes

See also

Referenced by