ST_StatsQuantile

更新时间:
复制 MD 格式

Calculates the quantiles of each band in a raster object and stores the results in the object's metadata.

Syntax

raster ST_StatsQuantile(raster raster_obj)

Parameters

ParameterDescription
raster_objThe raster object to calculate quantiles for.

Description

ST_StatsQuantile calculates quantiles for each band in the raster object and stores the results in the object's metadata.

Examples

The following example calculates quantiles for the raster object in row id = 1 and writes the results back to the raster column.

UPDATE rat_quantile
SET raster = ST_StatsQuantile(raster)
WHERE id = 1;