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 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
Return type
The resulting raster.

