This topic describes the ST_MeshGeomFromEWKB function. This function constructs a meshgeom object from the Extended Well-Known Binary (EWKB) representation of the meshgeom object.
Syntax
meshgeom ST_MeshGeomFromEWKB(bytea ewkb);Parameters
| Parameter | Description |
|---|---|
| ewkb | The meshgeom object in EWKB representation. |
Description
This function constructs a meshgeom object from the EWKB representation of the meshgeom object.
Examples
select ST_AsEWKT(ST_MeshGeomFromEWKB(ST_AsEWKB('MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom)));
-----------------------------------------------------------------------------
MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1),INDEX((0,1,2),1,2,3))))