Changes between Version 37 and Version 38 of WKTRaster/SpecificationWorking03
- Timestamp:
- 03/14/11 11:31:19 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v37 v38 197 197 198 198 ---- 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.''' == 200 200 201 201 For 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. … … 213 213 * a value: Replace any nodata value with this value and compute. 214 214 215 Any remaining parameters to ST_MapAlgebraNgb could be passed to the summarizing functions for its own need. 216 217 A number of predefined summarizing function could be delivered: ST_Average, ST_Majority, ST_Slope, ST_Aspect, 218 215 219 Users could write their own map algebra summarizing functions. 216 220 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. 221 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 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 223 There 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 220 228 221 229