Changes between Version 124 and Version 125 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
06/16/11 11:34:16 (13 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v124 v125  
    311311'''ST_Resample(raster, method, originx, originy, pixelsizex, pixelsizey) -> raster'''
    312312
    313  '''Variant'''
    314 
    315   1) ST_Resample(raster, method, raster) -> raster
    316 
    317  Recompute a raster in order to change its pixel size and/or the position of its upper left corner.
    318 
    319  The second parameter is the resampling method performed when computing new pixel values:
    320   1) 'NEAREST NEIGHBOR'[[BR]]
    321   2) 'LINEAR'[[BR]]
    322   3) 'BICUBIC'
    323 
    324  The 3rd or 3rd-6th parameters define the pixel size of the resampling operation. For the 3rd parameter variant, the pixel size is taken from the pixel size of the raster parameter. For the 3rd-6th parameter variant, the pixel origin and dimensions are explicitly defined.
     313 * Implemented as a wrapper around GDAL like done for ST_DumpAsPolygons()
     314 * Resampling methods are the same as the one priovided by GDAL
     315
     316 '''Variants'''
     317
     318 * The '''first series of variants''' only change the pixelsize of the raster.
     319
     320 1) ST_Resample(raster, pixelsize) - modify pixelsize only and resample using the default method
     321
     322 2) ST_Resample(raster, method, pixelsize) - modify pixelsize and resample using the specified method
     323
     324 3) ST_Resample(raster, pixelsizex, pixelsizey) - modify pixelsize with different values for x and y using the default method
     325
     326 4) ST_Resample(raster, method, pixelsizex, pixelsizey) - modify pixelsize with different values for x and y using the specified method
     327
     328 * The '''second series of variants''' realign the raster and change the pixelsize
     329
     330 5) ST_Resample(raster, x, y, pixelsize) - realign and modify pixelsize using the default method
     331
     332 6) ST_Resample(raster, method, x, y, pixelsize) - realign and modify pixelsize using the specified method
     333
     334 7) ST_Resample(raster, x, y, pixelsizex, pixelsizey) - realign and modify pixelsize with different values for x and y using the default method
     335
     336 8) ST_Resample(raster, method, x, y, pixelsizex, pixelsizey) - realign and modify pixelsize with different values for x and y using the specified method
     337
     338 9) ST_Resample(raster, x, y, pixelsizex, pixelsizey, skewx, skewy) - realign and modify pixelsize and skew with different values for x and y using the default method
     339
     340 10) ST_Resample(raster, method, x, y, pixelsizex, pixelsizey, skewx, skewy) - realign and modify pixelsize and skew with different values for x and y using the specified method
     341
     342 * The '''third series of variants''' align and resample the raster to match the alignment, pixelsize and skew of an existing raster.
     343 
     344 11) ST_Resample(destraster, sourceraster)
     345
     346 '''Questions'''
     347
     348 * Should there be a band parameter?
     349 * How does GDAL allow resampling?
     350 * Which methods GDAL supports? ArcGIS supports NEAREST | BILINEAR | CUBIC | MAJORITY
     351 * Does GDAL support change in skew?
    325352
    326353'''ST_SelectByValue(raster|geometry, 'expression') -> same type as first argument'''[[BR]]