Parses a string containing the WKT or EWKT representation of a geometry and create a geometry value of the appropriate type.
Syntax
ST_Geometry::ST_GeomFromWKT(LONG VARCHAR wkt, INT srid)
Parameters
-
wkt –
A string containing the WKT or EWKT representation of a geometry value.
-
srid –
The SRID of the result. If not specified, the default is 0.
Returns
ST_Geometry Returns a geometry value of the appropriate type based on the source string.
Standards
SQL/MM (ISO/IEC 13249-3: 2006) Vendor extension