187 | | Copy rast2 band into rast1 at the specified index. |
188 | | |
189 | | This function is useful in a number of plpgsql functions and to optimize ST_MapAlgebra. |
190 | | |
191 | | '''Variants''' |
192 | | |
193 | | 1) ST_AddBand(rast1 raster, rast2 raster, band int, index int) |
194 | | |
195 | | 2) ST_AddBand(rast1 raster, rast2 raster, band int) |
196 | | |
197 | | 3) ST_AddBand(rast1 raster, rast2 raster) |
198 | | |
199 | | Variant 2 add the rast2 band as the last band of rast1. |
200 | | |
201 | | Variant 3 default band to 1 and add it as the last band of rast1. |
| 187 | Add a band to a raster. The new band can be filled with nodata values or comes from another raster. The index where to insert the new band, the pixel type, the initial value and the nodata value can all be specified. |
| 188 | |
| 189 | '''Variants''' |
| 190 | |
| 191 | The first series of variant add the new band at the specified index. |
| 192 | |
| 193 | 1) ST_AddBand(rast raster, index int, pixeltype text, initialvalue float8, nodataval float8) |
| 194 | |
| 195 | 2) ST_AddBand(rast raster, index int, pixeltype text, initialvalue float8) |
| 196 | |
| 197 | 3) ST_AddBand(rast raster, index int, pixeltype text) |
| 198 | |
| 199 | The second series of variant add the new band as the last band. |
| 200 | |
| 201 | 4) ST_AddBand(rast raster, pixeltype text, initialvalue float8, nodataval float8) |
| 202 | |
| 203 | 5) ST_AddBand(rast raster, pixeltype text, initialvalue float8) |
| 204 | |
| 205 | 6) ST_AddBand(rast raster, pixeltype text) |
| 206 | |
| 207 | The third series of variant add a band as the copy of another raster band. |
| 208 | |
| 209 | 7) ST_AddBand(rast1 raster, rast2 raster, band int, index int) |
| 210 | |
| 211 | 8) ST_AddBand(rast1 raster, rast2 raster, band int) |
| 212 | |
| 213 | 9) ST_AddBand(rast1 raster, rast2 raster) |
| 214 | |
| 215 | Variant 7 copy rast2 band into rast1 at the specified index. This function is useful in a number of plpgsql functions and to optimize ST_MapAlgebra. |
| 216 | |
| 217 | Variant 8 add the rast2 band as the last band of rast1. |
| 218 | |
| 219 | Variant 9 default band to 1 and add it as the last band of rast1. |