Changes between Version 15 and Version 16 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Apr 16, 2009, 8:05:56 AM (15 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v15 v16  
    151151[[BR]]
    152152 1. Precede each call with RT_Band() to return a selected band.[[BR]]
    153 Pros: This is a general function that can be called before any function that would otherwise require a band parameter.[[BR]]
    154 Cons: This implies creating a temporary raster. This might be more elegant and general but is this too much overhead comparing with having a band parameter?
     153  Pros: This is a general function that can be called before any function that would otherwise require a band parameter.[[BR]]
     154  Cons: This implies creating a temporary raster. This might be more elegant and general but is this too much overhead comparing with having a band parameter?
    155155
    156156 2. Add a band parameter to each RT_AsFormat function.[[BR]]
    157 Pros: Hypothetically less overhead.[[BR]]
    158 Cons: Every functions implying access to a band should then have this parameter when in most case it would be equal to 1. In many cases it makes no sence to have to specify a band parameter since it is the whole raster that we want to export, including all the bands.
    159 
    160   Pierre: More I think about it more I think that the first option is the best one...
    161 
    162   mloskot: Perhaps there is a compromise in form of two sets of functions: 1) RT_As* which always burn the whole raster (all bands) 2) RT_BandAs* which takes number of band as a parameter and return only this requested band.
     157  Pros: Hypothetically less overhead.[[BR]]
     158  Cons: Every functions implying access to a band should then have this parameter when in most case it would be equal to 1. In many cases it makes no sence to have to specify a band parameter since it is the whole raster that we want to export, including all the bands.
     159
     160Pierre: More I think about it more I think that the first option is the best one...
     161
     162mloskot: Perhaps there is a compromise in form of two sets of functions: 1) RT_As* which always burn the whole raster (all bands) 2) RT_BandAs* which takes number of band as a parameter and return only this requested band.
    163163
    164164----