ST_GEOMETRYFROMWKT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functionsConversion functions

Parses a WKT (well-known text) or EWKT (extended well-known text) input and returns a value of type GEOMETRY.

Syntax

supportedpartialnot supportednot scored

ST_GEOMETRYFROMWKT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMFROMWKT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMETRYFROMEWKT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMFROMEWKT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMETRYFROMTEXT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

ST_GEOMFROMTEXT( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] )

Parameters

NameRequiredDescription
varchar_expressionrequiredThe argument must be a string expression in WKT or EWKT that represents a valid geospatial object.
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