This topic describes the ST_LOD function. This function returns the Level of Detail (LOD) of an object.
Syntax
int4 ST_LOD(sfmesh sfmeshObject);
Parameters
Parameter | Description |
---|---|
sfmeshObject | The sfmesh object. |
Description
This function returns the LOD of an object.
Examples
Select ST_LOD(ST_SetLod('{"version" : 1, "srid" : 4490, "root" : 0, "lod" :1, "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}]}'::sfmesh, 5));
---------------------------------------------------------------------
5