This topic describes the ST_GeomFromEWKT function. This function constructs a geometry object by using an Extended Well-Known Text (EWKT) string.
Syntax
geometry ST_GeomFromEWKT(text eWKT);
Parameters
Parameter | Description |
---|---|
eWKT | The EWKT string that you want to specify. |
Description
This function supports circular strings, curves, polyhedral surfaces, triangles, triangulated irregular network (TIN) surfaces, and 3D objects.
Examples
Construct a CircularString object.
SELECT ST_GeomFromEWKT('CIRCULARSTRING(200000 150000 0,21000 160000 0,220000 170000 1)');
st_geomfromewkt
---------------------------------------------------------------
01080000800300000000000000006A084100000000804F024100000000000.
.00000000000000082D4400000000000880341000000000000000000000000.
.00DB0A410000000080C00441000000000000F03F
(1 row)