ST_SetTileOption

更新时间:
复制 MD 格式

Sets the tile option for an sfmesh object and returns the updated object.

Syntax

sfmesh ST_SetTileOption(sfmesh sfmesh, cstring option);

Parameters

ParameterDescription
sfmeshThe sfmesh object.
optionThe tile option as a JSON string.

Description

ST_SetTileOption configures how tiles are generated for an sfmesh object. Pass the option parameter as a JSON string with the following fields:

FieldDescription
with_geometrySpecifies whether geometry objects are included in the tile.
with_submeshSpecifies whether child sfmesh objects are included in the tile.

Example option value:

{
  "with_geometry": true,
  "with_submesh": true
}

Examples

The following example sets the tile option to exclude geometry objects but include child sfmesh objects, then reads back the configured option using ST_TileOption:

SELECT ST_TileOption(ST_SetTileOption(the_mesh, '{"with_geometry":false,"with_submesh":true}'))
FROM t_table

Output:

{"with_geometry":false,"with_submesh":true}