This topic describes the ST_WKTToSQL function. This function constructs a geometry object by using a Well-Known Text (WKT) string.

Syntax

geometry  ST_WKTToSQL(text  WKT);

Parameters

Parameter Description
WKT The WKT string that you want to specify.

Description

  • This function is equivalent to the ST_GeomFromText function.
  • This function supports circular strings and curves.

Examples

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