[postgis-users] ST_AddBand

Bborie Park dustymugs at gmail.com
Wed Aug 13 07:29:01 PDT 2014

You're probably better served using the first variant which gives you full
control over each raster and band to be added.

All the other variants of ST_AddBand are wrappers around the first variant.


On Wed, Aug 13, 2014 at 6:37 AM, David Haynes <haynesd2 at gmail.com> wrote:

> I have a question about this function, regarding the fifth variant.
> 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.
> raster *ST_AddBand*(raster torast, raster[] fromrasts, integer fromband=1,
> integer torastindex=at_end);
> This is will not work
> ST_AddBand(ST_MakeEmptyraster(layers.stack_rast),ARRAY[layers.stack_rast,
> layers.stack_rast], ARRAY[1,3]) as rast
> This does, but assumes that I want band 1 both times.
> ST_AddBand(ST_MakeEmptyraster(layers.stack_rast),ARRAY[layers.stack_rast,
> layers.stack_rast], 1) as rast
> Shouldn't there be a variant that allows that uses an array integer that
> allows for you to individual specifications of bands.
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140813/56e49f85/attachment.html>

More information about the postgis-users mailing list