Changes between Version 18 and Version 19 of WKTRaster/SpecificationWorking03
- Timestamp:
- 02/23/10 11:13:01 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v18 v19 26 26 Variant 1: ST_SetPixelSize(raster, xsize, ysize) 27 27 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.~~ 31 31 32 32 '''Open Question:''' 33 33 DZ: Should there be corresponding methods for X/Y sizes? ST_SetXPixelSize(...) and ST_SetYPixelSize(...) 34 34 PR: In addition to ST_SetPixelSize(raster, xsize, ysize) or in replacement of? 35 DZ: In addition to? 35 DZ: In addition to?[[BR]] 36 36 PR: Maybe we are fine with ST_SetPixelSize(raster, xsize, ysize)... 37 37 38 38 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)) 39 39 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. 40 41 41 42 '''ST_SetNoDataValue(raster, band, value)''' … … 55 56 Variant 1: ST_SetRotation(raster, rotationx, rotation y) 56 57 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.~~ 60 61 61 62 '''Open Question:''' 62 63 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 63 65 64 66 '''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.~~ 68 70 69 71 '''Open Question:''' 70 72 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 72 74 ---- 73 75 == '''Objective B03b - Being able to reproject a raster.''' ==