All Products
Search
Document Center

PolarDB:ST_SetTileOption

Last Updated:Mar 28, 2026

Configures a custom tile option for an sfmesh object.

Syntax

sfmesh ST_SetTileOption(sfmesh sfmesh, cstring option);

Parameters

ParameterDescription
sfmeshThe sfmesh object.
optionThe value of the option. The value is in JSON format.

Description

This function configures a custom tile option. The value of the option parameter is a JSON string that contains the following fields:

FieldDescription
with_geometrySpecifies whether geometry objects are included.
with_submeshSpecifies whether child sfmesh objects are included.

Example:

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

Examples

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

Result:

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