Changes between Version 39 and Version 40 of WKTRaster/SpecificationWorking02
- Timestamp:
- 09/21/10 08:14:07 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking02
v39 v40 37 37 Returns a one band raster which pixel values are the mathematical expression of another raster band. 38 38 39 The expression is any PostgreSQL valid expression returning a number. This expression can contain any user-defined function. In the one raster version of ST_MapAlgebra, the value of the current pixel is expressed in the expression by "rast". E.g. 'cos(rast)' or 'rast / 2'39 The expression is any PostgreSQL valid expression returning a number. This expression can contain conditional expressions like CASE or any user-defined function. In the one raster version of ST_MapAlgebra, the value of the current pixel is expressed in the expression by "rast". E.g. 'cos(rast)' or 'rast / 2' 40 40 41 41 An extra nodata value expression, applying only to nodata values pixel, can be provided. … … 73 73 74 74 Only the first variant should be implemented in C. Others are pl/pgSQL variants. The C implementation should follow the plpgsql script of the one raster version of ST_MapAlgebra implemented at the top of http://trac.osgeo.org/postgis/browser/spike/wktraster/scripts/plpgsql/st_mapalgebra.sql 75 76 Optimizations should be implemented in many situations: 77 78 -When the raster is only no data values (tested with ST_BandIsNoDataValue() to be implemented) 79 80 -When the expression resume to the provided raster 'rast'. 75 81 76 82 Specifications for the two rasters version of ST_MapAlgebra are descibed in Objective 2.0.03.