Changes between Version 74 and Version 75 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
05/11/11 16:26:12 (14 years ago)
Author:
dustymugs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v74 v75  
    105105As 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.
    106106
    107 1. ST_MinMax(rast raster, nband int, ignore_nodata boolean) -> record
     1071. ST_MinMax(rast raster, nband int, hasnodata boolean) -> record
    108108
    109109  returns one record of two columns (min, max)
     
    111111  nband: index of band to process on
    112112
    113   ignore_nodata: if TRUE, any pixel who's value is nodata is ignored.
     113  hasnodata: if FALSE, any pixel who's value is nodata is ignored.
    114114
    115115{{{
     
    1191192. ST_MinMax(rast raster, nband int) -> record
    120120
    121   assumes ignore_nodata = TRUE
     121  assumes hasnodata = FALSE
    122122
    123123{{{
     
    125125}}}
    126126
    127 3. ST_MinMax(rast raster, ignore_nodata boolean) -> record
     1273. ST_MinMax(rast raster, hasnodata boolean) -> record
    128128
    129129  assumes band index = 1
     
    1351354. ST_MinMax(rast raster) -> record
    136136
    137   assumes band index = 1 and ignore_nodata = TRUE
     137  assumes band index = 1 and hasnodata = FALSE
    138138
    139139{{{
     
    149149The functions are:
    150150
    151 1. ST_ApproxMinMax(rast raster, nband int, ignore_nodata boolean, sample_percent double precision) -> record
     1511. ST_ApproxMinMax(rast raster, nband int, hasnodata boolean, sample_percent double precision) -> record
    152152
    153153  sample_percent: a value between 0 and 1 indicating the percentage of the raster band's pixels to consider when determining the min/max pair.
     
    159159}}}
    160160
    161 2. ST_ApproxMinMax(rast raster, ignore_nodata boolean, sample_percent double precision) -> record
     1612. ST_ApproxMinMax(rast raster, nband int, sample_percent double precision) -> record
    162162
    163163  assumes that nband = 1
    164164
    165165{{{
     166ST_ApproxMinMax(rast, 2 0.01)
     167
     168ST_ApproxMinMax(rast, 4, 0.025)
     169}}}
     170
     1713. ST_ApproxMinMax(rast raster, hasnodata boolean, sample_percent double precision) -> record
     172
     173  assumes that nband = 1
     174
     175{{{
    166176ST_ApproxMinMax(rast, FALSE, 0.01)
    167177
     
    169179}}}
    170180
    171 3. ST_ApproxMinMax(rast raster, sample_percent double precision) -> record
    172 
    173   assumes that nband = 1 and ignore_nodata = TRUE
     1814. ST_ApproxMinMax(rast raster, sample_percent double precision) -> record
     182
     183  assumes that nband = 1 and hasnodata = FALSE
    174184
    175185{{{
     
    177187}}}
    178188
    179 4. ST_ApproxMinMax(rast raster) -> record
    180 
    181   assumes that nband = 1, ignore_nodata = TRUE and sample_percent = 0.1
     1895. ST_ApproxMinMax(rast raster) -> record
     190
     191  assumes that nband = 1, hasnodata = FALSE and sample_percent = 0.1
    182192
    183193{{{