Changes between Version 110 and Version 111 of WKTRaster/SpecificationWorking03
- Timestamp:
- 06/13/11 15:08:11 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v110 v111 113 113 The "ST_Mean" summarizing function should accept three parameters: an array of float8 values, a X and a Y dimension, and optionnally a "what to do with nodata values". The possible value for this last parameter could be: 114 114 115 * "NULL": If any value is a nodata value, return NULL.116 * "ignore": Ignore any nodata value so that if 4 pixels on 25 are nodata values, do the computation with the 21 remaining. This is the default.117 * "value": Replace any nodata value with the value of the pixel being computed.118 *a value: Replace any nodata value with this value and compute.115 -"NULL": If any value is a nodata value, return NULL.[[BR]] 116 -"ignore": Ignore any nodata value so that if 4 pixels on 25 are nodata values, do the computation with the 21 remaining. This is the default.[[BR]] 117 -"value": Replace any nodata value with the value of the pixel being computed.[[BR]] 118 -a value: Replace any nodata value with this value and compute. 119 119 120 120 Any remaining parameters to ST_MapAlgebraNgb could be passed to the summarizing functions for its own need (e.g. "round" to specify that only the pixel forming a circle should be used in the computing). … … 136 136 Three difficulties must be solved to implement this function: 137 137 138 * The construction of the matrix must to be passed to the summarizing functions must be optimized when passing from one pixel to the other.139 * We must see how it is possible to call a PL/pgSQL function from a C function140 *We must see how to pass a variable number of parameter to a PL/pgSQL function138 -The construction of the matrix must to be passed to the summarizing functions must be optimized when passing from one pixel to the other.[[BR]] 139 -We must see how it is possible to call a PL/pgSQL function from a C function[[BR]] 140 -We must see how to pass a variable number of parameter to a PL/pgSQL function 141 141 142 142 See also: [wiki:WKTRaster/MapAlgebra Notes taken by David Zwarg during the Montreal Code Sprint 2011] and http://trac.osgeo.org/postgis/ticket/860 … … 161 161 Replacement expressions can be provided as parameter for when: 162 162 163 -The first raster value is nodata 164 -The second raster value is nodata 163 -The first raster value is nodata[[BR]] 164 -The second raster value is nodata[[BR]] 165 165 -Both rasters values when they are both nodata 166 166