This topic describes the ST_MeshFromEWKT function. This function constructs a sfmesh object from the extended well-known text (EWKT) representation of the object.

Syntax

sfmesh ST_MeshFromEWKTt(text ewkt);

Parameters

ParameterDescription
ewktThe sfmesh object in EWKT representation.

Description

The function constructs a sfmesh object from the EWKT representation of the object.

Examples

SELECT ST_AsEWKT(ST_MeshFromEWKT('{"version" : 1, "srid" : 4490, "root" : 0, "meshgeoms" : ["MESHGEOM(PATCH(TRIANGLESTRIP(0 0,0 10,10 10,10 0)))"], "primitives" : [{"meshgeom" : 0}], "nodes" : [{"primitive" : 0}]}'));

------------------------------------------------------------------------------
 {"version" : 1, "srid" : 4490, "root" : 0, "meshgeoms" : ["MESHGEOM(PATCH(TRIANGLESTRIP(0 0,0 10,10 10,10 0)))"], "primitives" : [{"meshgeom" : 0}], "nodes" : [{"primitive" : 0}]}