| 102 | |
| 103 | ---- |
| 104 | '''ST_MinMax(raster, nband) -> record'''[[BR]] |
| 105 | As part of the process to provide complete implementations of ST_AsJPEG and ST_AsPNG, a method is required to reclassify larger numbers unable to be contained in 8BUI (JPEG and PNG) and 16BUI (PNG). For this reclassification function, we need to get the min and max values of a band, thus ST_MinMax. |
| 106 | |
| 107 | ST_MinMax(rast raster, nband int) -> record |
| 108 | |
| 109 | returns one record of two columns (min, max) |
| 110 | |
| 111 | {{{ |
| 112 | ST_MinMax(rast, 2) |
| 113 | }}} |
| 114 | |
| 115 | ST_MinMax(rast raster) -> record |
| 116 | |
| 117 | assumes that the band index = 1 |
| 118 | |
| 119 | {{{ |
| 120 | ST_MinMax(rast) |
| 121 | }}} |