使用raster對象或對象集更新overview。
文法
raster ST_UpdateOverview(raster raster_obj,raster source[]);
參數
| 參數名稱 | 描述 |
| raster_obj | 目標raster對象。 |
| source | 源raster對象或對象集。 |
描述
所有指定的raster對象需要滿足以下條件:
- 具有相同的波段數。
- 所有的raster對象都有地理參考座標,或者都沒有,不允許存在部分有部分沒有地理參考座標的情況。如果都有地理參考座標,則採用全局座標(地理座標)鑲嵌。
- 指定raster對象的像素類型可以不同。如果是全局座標鑲嵌,則SRID、像素解析度必須一致。
樣本
Update raster_table set raster_obj = ST_UpdateOverview(raster_obj, Array(select raster_obj from raster_table_new)) where id = 1;