ST_MeshGeomFromWKB
Updated at:
Creates a meshgeom object from WKB.
Syntax
meshgeom ST_MeshGeomFromWKB(bytea wkb);
meshgeom ST_MeshGeomFromWKB(bytea wkb, int4 srid);Parameters
Parameter | Description |
wkb | The WKB representation of a meshgeom object. |
srid | Spatial reference |
Description
This function constructs a meshgeom object from the WKB representation of the meshgeom object.
Examples
select ST_AsEWKT(ST_MeshGeomFromWKB(ST_AsWKB('MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom)));
st_asewkt
-----------------------------------------------------------------------------
MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1),INDEX((0,1,2),1,2,3)))))Is this page helpful?