Skip to content

RS_RasterToWorldCoord

Converts raster pixel coordinates to world coordinates as a point.

Usage

geometry RS_RasterToWorldCoord(rast: raster, x: integer, y: integer)

Arguments

  • rast (raster): Input raster
  • x (integer)
  • y (integer)

Examples

SELECT RS_RasterToWorldCoord(RS_Example(), 10, 20);
┌─────────────────────────────────────────────────────────┐
│ rs_rastertoworldcoord(rs_example(),Int64(10),Int64(20)) │
│                         geometry                        │
╞═════════════════════════════════════════════════════════╡
│ POINT(83.08 129.07)                                     │
└─────────────────────────────────────────────────────────┘