<para>
For the version that takes an array of bands if <varname>torast</varname> is NULL, then the <varname>fromband</varname> band of each raster in the array is accumulated into a new raster.
</para>
+ <para>Enhanced: 2.1.0 support addbandarg was introduced.</para>
</refsection>
<refsection>
<programlisting>
-- Create an empty raster 100x100 units, with upper left right at 0, add 2 bands (band 1 is 0/1 boolean bit switch, band2 allows values 0-15)
+-- uses addbandargs
INSERT INTO dummy_rast(rid,rast)
- VALUES(10, ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, 0), '1BB'::text), '4BUI'::text) );
+ VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, 0),
+ ARRAY[
+ ROW(1, '1BB'::text, 0, NULL),
+ ROW(2, '4BUI'::text, 0, NULL)
+ ]::addbandarg[]
+ )
+ );
-- output meta data of raster bands to verify all is right --
SELECT (bmd).*