Changes between Version 168 and Version 169 of WKTRaster/SpecificationWorking03
- Timestamp:
- 11/10/11 13:35:47 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified WKTRaster/SpecificationWorking03
v168 v169 111 111 An alternative syntax would involve another function name (e.g. ST_MapAlgebraNgb or ST_MovingWindow) and a way to define a neighbour rectangular region around the computed pixel (e.g.: "2,2" meaning a rectangle encompassing the two neighbour pixels in each direction) and a function to call with this matrix of pixel values. A complete example might look like: 112 112 113 SELECT ST_MapAlgebra Ngb(rast, band, pixeltype, "ST_Mean", 2, 2, "ignore")113 SELECT ST_MapAlgebraFctNgb(rast, band, pixeltype, "ST_Mean", 2, 2, "ignore") 114 114 115 115 So this would mean "for each pixel, compute the average of all the 1 + 8 + 16 = 25 pixels surrounding the current pixel and "ignore" pixels with nodata values." … … 121 121 -"value": Replace any nodata value with the value of the pixel being computed.[[BR]] 122 122 -a value: Replace any nodata value with this value and compute. 123 124 '''Open questions''' 125 126 DZ: Since this accepts a user function, the user function should determine how to handle NODATA values inside of the neighborhood. These different modes of operating should be arguments to the userfunctions, and not to ST_MapAlgebraFctNgb. 123 127 124 128 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).