Changes between Version 66 and Version 67 of WKTRaster/SpecificationWorking03
- Timestamp:
- 04/21/11 13:35:18 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v66 v67 105 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 106 107 1. ST_MinMax(rast raster, nband int) -> record 108 109 returns one record of two columns (min, max) 107 1. ST_MinMax(rast raster, nband int, ignore_nodata boolean) -> record 108 109 returns one record of two columns (min, max) 110 111 nband: index of band to process on 112 113 ignore_nodata: if TRUE, any pixel who's value is nodata is ignored. 114 115 {{{ 116 ST_MinMax(rast, 2, TRUE) 117 }}} 118 119 2. ST_MinMax(rast raster, nband int) -> record 120 121 assumes ignore_nodata = TRUE 110 122 111 123 {{{ … … 113 125 }}} 114 126 115 2. ST_MinMax(rast raster) -> record 116 117 assumes that the band index = 1 127 3. ST_MinMax(rast raster, ignore_nodata boolean) -> record 128 129 assumes band index = 1 130 131 {{{ 132 ST_MinMax(rast, FALSE) 133 }}} 134 135 4. ST_MinMax(rast raster) -> record 136 137 assumes band index = 1 and ignore_nodata = TRUE 118 138 119 139 {{{