| 37 | Returns a one band raster as the mathematical expression of another raster band. |
| 38 | |
| 39 | The resulting raster conserve the size, the georeference, the alignment and the SRID of the provided raster. The pixel type of the resulting raster might be specified. An extra nodata value expression, applying only on nodata values, can be provided. |
| 40 | |
| 41 | '''Variants''' |
| 42 | |
| 43 | First series of variant with band specifier. |
| 44 | |
| 45 | 1) ST_MapAlgebra(rast raster, band integer, expression text, nodatavalueexpr text, pixeltype text) |
| 46 | |
| 47 | 2) ST_MapAlgebra(rast raster, band integer, expression text, nodatavalueexpr text) |
| 48 | |
| 49 | 3) ST_MapAlgebra(rast raster, band integer, expression text, pixeltype text) |
| 50 | |
| 51 | 4) ST_MapAlgebra(rast raster, band integer, expression text) |
| 52 | |
| 53 | Second series of variant without band specifier. |
| 54 | |
| 55 | 5) ST_MapAlgebra(rast raster, expression text, nodatavalueexpr text, pixeltype text) |
| 56 | |
| 57 | 6) ST_MapAlgebra(rast raster, expression text, nodatavalueexpr text) |
| 58 | |
| 59 | 7) ST_MapAlgebra(rast raster, expression text, pixeltype text) |
| 60 | |
| 61 | 8) ST_MapAlgebra(rast raster, expression text) |
| 62 | |
| 63 | '''Implementation details''' |
| 64 | |
| 65 | Only the first variant should be implemented in C. Others are pl/pgSQL variants. |