<div dir="ltr">I have a question about this function, regarding the fifth variant.<div>Why does the function assume that all of the rasters input in the array have their information stored at the same band? The variant will only allow for 1 band number to be specified for all rasters.<br>
<div><br></div><div><code class="">raster <b class="">ST_AddBand</b>(</code>raster <var class="">torast</var>, raster[] <var class="">fromrasts</var>, integer <var class="">fromband=1</var>, integer <var class="">torastindex=at_end</var><code>)</code>;<br>
</div><div><br></div><div>This is will not work</div><div><br></div><div>ST_AddBand(ST_MakeEmptyraster(layers.stack_rast),ARRAY[layers.stack_rast, layers.stack_rast], ARRAY[1,3]) as rast<br></div></div><div><br></div><div>
This does, but assumes that I want band 1 both times.</div><div>ST_AddBand(ST_MakeEmptyraster(layers.stack_rast),ARRAY[layers.stack_rast, layers.stack_rast], 1) as rast<br></div><div><br></div><div>Shouldn't there be a variant that allows that uses an array integer that allows for you to individual specifications of bands.<br>
</div></div>