Changes between Version 42 and Version 43 of WKTRaster/SpecificationWorking02


Ignore:
Timestamp:
Sep 21, 2010, 8:59:34 AM (10 years ago)
Author:
pracine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking02

    v42 v43  
    181181
    182182----
    183 == '''Objective 2.0.06 - Being able to add a band to a raster as a copy of the band of another raster.''' ==
     183== '''Objective 2.0.06 - Being able to add a band to a raster''' ==
    184184
    185185'''ST_AddBand'''
    186186
    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.
    202220
    203221 '''Implementation details'''