Changes between Version 37 and Version 38 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
Mar 14, 2011, 11:31:19 AM (13 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v37 v38  
    197197
    198198----
    199 == '''Objective FV.03 - Being able to use neighbour pixels in MapAlgebra expressions.''' ==
     199== '''Objective FV.03 - Being able to use neighbour pixels in !MapAlgebra expressions.''' ==
    200200
    201201For now ST_MapAlgebra expressions refer only to the pixel being computed. e.g. "rast * 100". The original plan was to allow refering to neighbour pixels using two coordinated relative to the pixel being computed. e.g. "rast[-1,0] * 100" where rast[-1,0] refer to the value of the pixel one pixel to the left of the pixel being computed. However this syntax might prove to be hard to use when many neighbours are to be used.
     
    213213 * a value: Replace any nodata value with this value and compute.
    214214
     215Any remaining parameters to ST_MapAlgebraNgb could be passed to the summarizing functions for its own need.
     216
     217A number of predefined summarizing function could be delivered: ST_Average, ST_Majority, ST_Slope, ST_Aspect,
     218
    215219Users could write their own map algebra summarizing functions.
    216220
    217 A more sophisticated version would pass a georeferenced raster instead of just a value matrix so that summarizing function could use this geoereference (e.g. to determine a ).
    218 
    219 Any remaining parameters to ST_MapAlgebraNgb could be passed to the summarizing functions for its own need.
     221A more sophisticated version would pass a georeferenced raster instead of just a value matrix so that summarizing function could use this geoereference (e.g. to determine a value from the whole coverage (with ST_Value) when the neighbours are out of the bound of the raster). Passing a raster would allow existing raster functions (like the summarizing function which are to come) and remove the need to pass the dimension since they would correspond to the ST_Width & ST_Height functions. Only the optional "what to do with nodata values" could be needed and some additional parameters.
     222
     223There is three difficulties must be solved to impement this function:
     224
     225 * The matrix values assigment must be optimized when passing from one pixel to the other.
     226 * We must see how it is possible to call a PL/pgSQL function from a C function
     227 * We must see how to pass a variable number of parameter to a PL/pgSQL function
    220228
    221229