This topic describes the ST_MeshGeomFromHexEWKB function. This function constructs a meshgeom object from the HEXEWKB representation of the meshgeom object.

Syntax

meshgeom ST_MeshGeomFromHexEWKB(text hexewkb);

Parameters

ParameterDescription
hexewkbThe meshgeom object in HEXEWKB representation.

Description

This function constructs a meshgeom object from the HEXEWKB representation of the meshgeom object.

Examples

select ST_AsEWKT(ST_MeshGeomFromHexEWKB(ST_AsHexEWKB('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))))