This topic describes the ST_SetLOD function. This function sets the Level of Detail (LOD) for an object.
Syntax
mesh ST_SetLOD(sfmesh sfmeshObject, integer LOD);Parameters
| Parameter | Description |
|---|---|
| sfmeshObject | The sfmesh object. |
| LOD | The LOD, which must be greater than 0. |
Description
This function sets the LOD for 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