Configures the update rules applied when ST_UpdatePyramid runs on a vector table.
Syntax
boolean ST_SetUpdatePyramidRules(cstring table, cstring geom_field, cstring rules);Parameters
| Parameter | Description |
|---|---|
table | The name of the vector table. |
geom_field | The name of the column with the Geometry attribute in the vector table. |
rules | The update rules in JSON format. The updateBoxScale and updateExtentSRS keys control how the update operation runs. For details, see ST_UpdatePyramid. |
Return value
Returns true if the rules are set successfully.
Examples
SELECT ST_SetupdatePyramidRules('test_update_line', 'geom', '{"updateBoxScale":100000}');
st_setupdatepyramidrules
--------------------------
t
(1 row)