Skip to main content
Returns the upper left X and Y coordinates of the given row and column of the given raster geometric units of the geo-referenced raster as a Point geometry. If any out of bounds values are given, the X and Y coordinates of the assumed point considering existing raster pixel size and skew values will be returned. RS_RasterToWorldCoord

Signatures

RS_RasterToWorldCoord(raster: Raster, colX: Integer, rowY: Integer)

Parameters

raster
Raster
required
The input raster.
colX
Integer
required
The col x value.
rowY
Integer
required
The row y value.

Return type

The resulting geometry.

Example

SELECT RS_RasterToWorldCoord(ST_MakeEmptyRaster(1, 5, 10, -123, 54, 5, -10, 0, 0, 4326), 1, 1) from rasters
POINT (-123 54)