you can get that by the following relationship.</para>
<para>Coordinate upper left ppoint of a row column
is:
- ST_SetSRID(ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*columnx, ST_UpperRightY(rast) + ST_PixelSizeX(rast)*columny), ST_SRID(rast))
+ ST_SetSRID(ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*columnx, ST_UpperLeftY(rast) + ST_PixelSizeY(rast)*columny), ST_SRID(rast))
</para>
<para>If you want the pixel box instead of the upper left point, you can use the ST_MakeEnvelope function and
translate it every x,y.</para>
--- Get all values in bands 1,2,3 of each pixel same as above but returning the upper left point point of each pixel --
SELECT ST_AsText(ST_SetSRID(
ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*x,
- ST_UpperLeftY(rast) + ST_PixelSizeX(rast)*y),
+ ST_UpperLeftY(rast) + ST_PixelSizeY(rast)*y),
ST_SRID(rast))) As uplpt
, ST_Value(rast, 1, x, y) As b1val,
ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val