ST_UpdateOverview

更新时间:
复制 MD 格式

Updates the overview of a destination raster object using one or more source raster objects.

Syntax

raster ST_UpdateOverview(raster raster_obj, raster source[]);

Parameters

ParameterDescription
raster_objThe destination raster object.
sourceThe source raster object or object set.

Usage notes

All raster objects passed to this function must meet the following requirements:

  • They have the same number of bands.
  • Either all objects are geographically referenced, or none of them are. If all are geographically referenced, world coordinates (geographic coordinates) are used for the mosaic operation.
  • Pixel types can differ across objects. If world coordinates are used for the mosaic operation, all objects must share the same spatial reference system identifier (SRID) and pixel resolution.

Examples

Update raster_table set raster_obj = ST_UpdateOverview(raster_obj, Array(select raster_obj from raster_table_new)) where id = 1;