Changes between Version 24 and Version 25 of WKTRaster/SpecificationWorking02


Ignore:
Timestamp:
Sep 3, 2010, 2:22:07 PM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking02

    v24 v25  
    3131 Returns TRUE if the raster width or the raster height is 0.
    3232
    33 '''ST_HasNoBand(rast, band) -> boolean'''
     33'''ST_HasNoBand'''
     34
     35 '''Variants'''
     36
     37  1) ST_HasNoBand(rast, band) -> boolean
     38
     39  2) ST_HasNoBand(rast) -> boolean
    3440
    3541 Returns TRUE if the the raster does not have this band.
    3642
     43 Variant 2 returns TRUE if the the raster does not have any band.
     44
     45'''ST_BandIsNoData'''
     46
    3747 '''Variants'''
    3848
    39   1) ST_HasNoBand(rast) -> boolean
     49  1) ST_BandIsNoData(rast, band) -> boolean
    4050
    41  Variant 1 returns TRUE if the the raster does not have any band.
    42 
    43 '''ST_BandIsNoData(rast, band) -> boolean'''
     51  2) ST_BandIsNoData(rast) -> boolean
    4452
    4553 Returns TRUE if the specified raster band is only filled with no data value.
    4654
    47  '''Variants'''
    48 
    49   1) ST_BandIsNoData(rast) -> boolean
    50 
    51  Variant 1 default to band 1.
     55 Variant 2 default to band 1.
    5256
    5357 '''Implementation details'''
     
    6064'''ST_Clip'''
    6165
     66 Returns the subset of a raster as a raster.
     67
     68 All metadata are copied from the source raster (except ulx, uly, width and height which must be computed).
     69
    6270 '''Variants'''
    6371
     
    6876  3) ST_Clip(raster, geometry, 'EXACT') -> raster
    6977
    70  Returns the subset of a raster as a raster.
    7178
    72  All metadata are copied from the source raster (except ulx, uly, width and height which must be computed).
    7379
    7480 Variant 1) takes the upper left and lower left corner of the desired zone. Variant 2) determine the extent of this zone from the extent of a geometry. Variant 3) determine the extent of this zone from the extent of a geometry and set all pixel outside the geometry to no data values.
     
    8086 Implemented as a wrapper around ST_MapAlgebra.
    8187 
    82  newrast := ST_AddBand(ST_MakeEmptyRaster(x2 - x1, y2 - y1,
    83                               ST_Raster2WorldCoordX(rast, x1, y2),
    84                               ST_Raster2WorldCoordY(rast, x1, y2),
    85                               ST_PixelSizeX(rast),
    86                               ST_PixelSizeY(rast),
    87                               ST_SkewX(rast),
    88                               ST_SkewY(rast),
    89                               ST_SRID(rast)), ‘1BB’, 1, 0)
     88 newrast := ST_AddBand(ST_MakeEmptyRaster(x2 - x1, y2 - y1, ST_Raster2WorldCoordX(rast, x1, y2), ST_Raster2WorldCoordY(rast, x1, y2), ST_PixelSizeX(rast), ST_PixelSizeY(rast),ST_SkewX(rast),ST_SkewY(rast), ST_SRID(rast)), ‘1BB’, 1, 0)
    9089 newrast := ST_MultiBandMapAlgebra(rast, newrast, ‘r1’, ‘INTERSECTION’)
    9190