Changes between Version 208 and Version 209 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
Jul 24, 2012, 1:44:13 PM (12 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v208 v209  
    511511
    512512----
     513== '''Objective FV.23 - Being able to set and get values for part of a raster.''' ==
     514
     515'''ST_SetValues'''
     516
     517 Set a set of pixel to a value.
     518
     519 Those functions are provided as a faster way to set pixels than the (future) two rasters version of ST_MapAlgebra which can also be used when more conditional flexibility is necessary. They should also be used in this version of ST_MapAlgebra to quicly set large areas to a single value.
     520
     521 '''Variants'''
     522
     523 The first series of variant set a defined area of the raster to a value.
     524
     525  1) ST_SetValues(rast raster, band int, x int, y int, width int, height int, val float8, keepdestnodata boolean)
     526
     527  2) ST_SetValues(rast raster, x int, y int, width int, height int, val float8, keepdestnodata boolean)
     528
     529  3) ST_SetValues(rast raster, x int, y int, width int, height int, val float8)
     530
     531  4) ST_SetValues(rast raster, band int, x int, y int, width int, height int, val float8)
     532
     533 The second series of variant set a defined area of the raster to corresponding values of another raster.
     534
     535  5) ST_SetValues(rast1 raster, band1 int, x int, y int, width int, height int, rast2 raster, band2 int, keepdestnodata boolean, keepsourcenodata boolean)
     536
     537  6) ST_SetValues(rast1 raster, x int, y int, width int, height int, rast2 raster, keepdestnodata boolean, keepsourcenodata boolean)
     538
     539  7) ST_SetValues(rast1 raster, x int, y int, width int, height int, rast2 raster)
     540
     541 x, y, width & height define the area of the raster to be edited. x & y are the raster coordinates of the upper left corner of this are. When x, y, width or height are out of the raster range, only the part of the range intersecting with the raster is set to the new value.
     542
     543 val is the new value to be set.
     544
     545 When keepdestnodata is TRUE, destination nodata value pixels are not set. Default is FALSE so that nodata value pixels are set.
     546
     547 When keepsourcenodata is TRUE, source nodata value pixels are not copied. Default is FALSE so that nodata value pixels are copied.
     548
     549 Variant 2 assume band to be 1.
     550
     551 Variant 3 assume band to be 1 and keepdestnodata to be FALSE.
     552
     553 Variant 4 assume only keepdestnodata to be FALSE.
     554
     555 Variant 6 assume both bands to be 1.
     556
     557 Variant 7 assume both bands to be 1, keepdestnodata to be FALSE and keepsourcenodata to be FALSE.
     558
     559 '''Implementation details'''
     560 
     561 PL/pgSQL prototypes can be found in http://trac.osgeo.org/postgis/browser/trunk/raster/scripts/plpgsql/st_setvalues.sql
     562
     563----
    513564== '''Other functions''' ==
    514565