Skip to main content
Returns a combined multi-band raster from 2 or more input Rasters, stacking their bands. The order of bands in the resultant raster will be in the order of the input rasters. For example if RS_Stack is called on two 2-banded raster, raster1 and raster2, the first 2 bands of the resultant 4-banded raster will be from raster1 and the last 2 from raster 2.
If the provided input Rasters don’t have same shape an IllegalArgumentException will be thrown.
RS_Stack
RS_Stack replaces RS_Union. It stacks bands from rasters with matching shapes; it does not mosaic spatially adjacent raster grids. The old function name is removed. See Geometry and raster API migration.

Signatures

Parameters

Raster
required
The raster1 value.
Raster
required
The raster2 value.
Raster
The raster3 value.
Raster
The raster4 value.
Raster
The raster5 value.
Raster
The raster6 value.
Raster
The raster7 value.

Return type

The resulting raster.

Example