This function performs a mosaic operation to integrate multiple raster objects into an existing raster object.

Syntax

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

Parameters

Parameter Description
raster_obj The destination raster object.
source The source raster objects.

Description

All the specified raster objects must meet the following requirements:
  • They have the same number of bands.
  • Either all of them are geographically referenced, or none of them is geographically referenced. If all of them are geographically referenced, world coordinates (geographic coordinates) are used for the mosaic operation.
  • Their pixel types can be different. If world coordinates are used for the mosaic operation, they must have the same spatial reference system identifier (SRID) and affine parameters.

Examples

Update raster_table Set raster_obj = ST_MosaicTo(raster_obj, Array(select raster_obj from raster_table where id < 10)) where id = 11;