This topic describes the ST_MeshGeomFromEWKT function. This function constructs a meshgeom object from the extended well-known text (EWKT) representation of the object.
Syntax
meshgeom ST_MeshGeomFromEWKT(text ewkt);Parameters
| Parameter | Description |
|---|---|
| ewkt | The meshgeom object in EWKT representation. |
Description
The function constructs a meshgeom object from the EWKT representation of the object.
Examples
select ST_AsEWKT(ST_MeshGeomFromEWKT('SRID=4490;MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'));
------------------------------------------------------------------------------
SRID=4490;MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 ),INDEX((0,1,2),(1,2,3)))))