Changes between Version 18 and Version 19 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
02/23/10 11:13:01 (15 years ago)
Author:
dzwarg
Comment:

Removed setters that copy settings from a raster parameter for ST_SetPixelSize, ST_SetRotation, and ST_SetUpperLeft

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v18 v19  
    2626 Variant 1: ST_SetPixelSize(raster, xsize, ysize)
    2727
    28  Variant 2: ST_SetPixelSize(raster, raster)
    29 
    30  Set the pixel size (cell size) on the specified raster. The base method sets the X and Y pixel size to the same value. The first variant sets the pixel sizes to the individually specified x and y sizes.  The second variant sets the pixel size to the pixel size of the 2nd raster parameter.
     28 ~~Variant 2: ST_SetPixelSize(raster, raster)~~
     29
     30 Set the pixel size (cell size) on the specified raster. The base method sets the X and Y pixel size to the same value. The first variant sets the pixel sizes to the individually specified x and y sizes.  ~~The second variant sets the pixel size to the pixel size of the 2nd raster parameter.~~
    3131
    3232 '''Open Question:'''
    3333  DZ: Should there be corresponding methods for X/Y sizes?  ST_SetXPixelSize(...) and ST_SetYPixelSize(...)
    3434    PR: In addition to ST_SetPixelSize(raster, xsize, ysize) or in replacement of?
    35       DZ: In addition to?
     35      DZ: In addition to?[[BR]]
    3636      PR: Maybe we are fine with ST_SetPixelSize(raster, xsize, ysize)...
    3737
    3838  PR: Could you provide a full SQL example of ST_SetPixelSize(raster, raster)? And in general of a function getting arguments for the first raster from another raster (like the below ST_Resample(raster, method, raster))
    3939    DZ: A SQL example for this is in the regression tests in patch #431: test/regress/rt_set_properties.sql, line 52. I can come up with some more examples, if needed.
     40      DZ: After discussion, will drop the variant that copies the pixel size from a raster parameter.
    4041
    4142'''ST_SetNoDataValue(raster, band, value)'''
     
    5556 Variant 1: ST_SetRotation(raster, rotationx, rotation y)
    5657
    57  Variant 2: ST_SetRotation(raster, raster)
    58 
    59  Set the rotation of the raster. The base method sets the X and Y rotation to the same value. The first variant sets the rotation to the individually specified x and y rotations. The second variant sets the rotation to the rotation taken from the 2nd raster parameter.
     58 ~~Variant 2: ST_SetRotation(raster, raster)~~
     59
     60 Set the rotation of the raster. The base method sets the X and Y rotation to the same value. The first variant sets the rotation to the individually specified x and y rotations. ~~The second variant sets the rotation to the rotation taken from the 2nd raster parameter.~~
    6061
    6162 '''Open Question:'''
    6263  DZ: Should there be corresponding methods for X/Y rotations in addition to this general method?  ST_SetXRotation(...) and ST_SetYRotation(...)?
     64    DZ: No, follow the pattern for ST_SetPixelSize
    6365
    6466'''ST_SetUpperLeft(raster, left, top)'''
    65  Variant 1: ST_SetUpperLeft(raster, raster)'''
    66 
    67  Set the location of the upper left pixel (cell). The base method sets the X and Y coordinates to the individually specified left and top coordinates.  The first variant sets the upper left coordinate to the upper left coordinate taken from the 2nd raster parameter.
     67 ~~Variant 1: ST_SetUpperLeft(raster, raster)~~
     68
     69 Set the location of the upper left pixel (cell). The base method sets the X and Y coordinates to the individually specified left and top coordinates.  ~~The first variant sets the upper left coordinate to the upper left coordinate taken from the 2nd raster parameter.~~
    6870
    6971 '''Open Question:'''
    7072  DZ: Should there be corresponding methods for X/Y rotations in addition to this general method?  ST_SetUpperLeftX(...) and ST_SetUpperLeftY()?
    71 
     73    DZ: No, follow the pattern for ST_SetPixelSize
    7274----
    7375== '''Objective B03b - Being able to reproject a raster.''' ==