This topic describes the ST_AsWKB function. This function returns the well-known binary (WKB) representation of an object of any type.
Syntax
bytea ST_AsWKB(meshgeom geom);
bytea ST_AsWKB(sfmesh sfmeshObject);
bytea ST_AsWKB(meshgeom geom, cstring endian);
bytea ST_AsWKB(sfmesh sfmeshObject, cstring endian);Parameters
| Parameter | Description |
|---|---|
| geom | The meshgeom object. |
| sfmeshObject | The sfmesh object. |
| endian | The endian. Valid values:
|
Description
This function returns the WKB representation of an object of any type.
Examples
select ST_AsWKB(ST_MeshFromText('{"version" : 1, "root" : 0, "meshgeoms" : ["MESHGEOM(PATCH(INDEXSURFACE Z (VERTEX(0 0 2,0 10 3,10 10 1,10 0 1),INDEX((0,1,2),(1,2,3)))))"], "primitives" : [{"meshgeom" : 0}], "nodes" : [{"primitive" : 0}]}'));
------------------------------------------------------------------------------
\x014d01020...