All Products
Search
Document Center

PolarDB:ST_WKTToSQL

Last Updated:Mar 28, 2026

Constructs a geometry object from a Well-Known Text (WKT) string.

Syntax

geometry ST_WKTToSQL(text WKT);

Parameters

ParameterDescription
WKTThe WKT string to parse.

Usage notes

  • ST_WKTToSQL is equivalent to ST_GeomFromText.

  • Supports circular strings and curves.

Examples

SELECT ST_WKTToSQL('POINT(116 40)');
              st_geomfromtext
--------------------------------------------
 01010000000000000000005D400000000000004440
(1 row)