刪除影像金字塔。

語法

raster ST_deletePyramid(raster source);

參數(shù)

參數(shù)名稱 描述
source 需要刪除金字塔的raster對象。

描述

刪除影像金字塔,重置影像元數(shù)據(jù),刪除金字塔塊數(shù)據(jù)。

示例

DO $$
declare
    rast raster;
begin
    select raster_obj into rast from raster_table where id = 1;
    rast = ST_deletePyramid(rast);
    update raster_table set raster_obj = rast where id = 1;
end;    
$$ LANGUAGE 'plpgsql';