返回一个与给定的EWKT字符串相对应的Geometry对象。

语法

geometry  ST_GeomFromEWKT(text  eWKT);

参数

参数名称 描述
eWKT EWKT字符串。

参数

该函数支持Circular Strings、Curves、Polyhedral surfaces、Triangles、Triangulated Irregular Network Surfaces(TIN)和3D对象。

示例

输出一个Circular Strings对象:
SELECT ST_GeomFromEWKT('CIRCULARSTRING(200000 150000 0,21000 160000 0,220000 170000 1)');
                        st_geomfromewkt
---------------------------------------------------------------
 01080000800300000000000000006A084100000000804F024100000000000.
.00000000000000082D4400000000000880341000000000000000000000000.
.00DB0A410000000080C00441000000000000F03F
(1 row)