Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

RS_RasterToWorldCoord

Introduction: 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.

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

Since: v1.5.1

SQL Example

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

Output:

POINT (-123 54)