Changes between Version 64 and Version 65 of WKTRaster/SpecificationWorking02


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

--

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking02

    v64 v65  
    8585
    8686----
    87 == '''Objective 2.0.05 - Being able to set and get values for part of a raster.''' ==
    88 
    89 '''ST_SetValues'''
    90 
    91  Set a set of pixel to a value.
    92 
    93  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.
    94 
    95  '''Variants'''
    96 
    97  The first series of variant set a defined area of the raster to a value.
    98 
    99   1) ST_SetValues(rast raster, band int, x int, y int, width int, height int, val float8, keepdestnodata boolean)
    100 
    101   2) ST_SetValues(rast raster, x int, y int, width int, height int, val float8, keepdestnodata boolean)
    102 
    103   3) ST_SetValues(rast raster, x int, y int, width int, height int, val float8)
    104 
    105   4) ST_SetValues(rast raster, band int, x int, y int, width int, height int, val float8)
    106 
    107  The second series of variant set a defined area of the raster to corresponding values of another raster.
    108 
    109   5) ST_SetValues(rast1 raster, band1 int, x int, y int, width int, height int, rast2 raster, band2 int, keepdestnodata boolean, keepsourcenodata boolean)
    110 
    111   6) ST_SetValues(rast1 raster, x int, y int, width int, height int, rast2 raster, keepdestnodata boolean, keepsourcenodata boolean)
    112 
    113   7) ST_SetValues(rast1 raster, x int, y int, width int, height int, rast2 raster)
    114 
    115  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.
    116 
    117  val is the new value to be set.
    118 
    119  When keepdestnodata is TRUE, destination nodata value pixels are not set. Default is FALSE so that nodata value pixels are set.
    120 
    121  When keepsourcenodata is TRUE, source nodata value pixels are not copied. Default is FALSE so that nodata value pixels are copied.
    122 
    123  Variant 2 assume band to be 1.
    124 
    125  Variant 3 assume band to be 1 and keepdestnodata to be FALSE.
    126 
    127  Variant 4 assume only keepdestnodata to be FALSE.
    128 
    129  Variant 6 assume both bands to be 1.
    130 
    131  Variant 7 assume both bands to be 1, keepdestnodata to be FALSE and keepsourcenodata to be FALSE.
    132 
    133  '''Implementation details'''
    134  
    135  PL/pgSQL prototypes can be found in http://trac.osgeo.org/postgis/browser/trunk/raster/scripts/plpgsql/st_setvalues.sql
     87== '''Objective 2.0.05 - Being able to clip a raster.''' ==
    13688
    13789'''ST_Clip'''