RS_RasterToWorldCoordY¶
Converts raster pixel coordinates to world Y coordinate.
Usage¶
double RS_RasterToWorldCoordY(rast: raster, x: integer, y: integer)
Arguments¶
- rast (raster): Input raster
- x (integer)
- y (integer)
Description¶
Pixel coordinates are 1-based, as in PostGIS ST_RasterToWorldCoord:
(1, 1) is the upper-left pixel, and the result is the world coordinate
of that pixel’s upper-left corner. Coordinates outside the grid,
including 0, extrapolate along the geotransform.
Examples¶
SELECT RS_RasterToWorldCoordY(RS_Example(), 10, 20);
┌──────────────────────────────────────────────────────────┐
│ rs_rastertoworldcoordy(rs_example(),Int64(10),Int64(20)) │
│ float64 │
╞══════════════════════════════════════════════════════════╡
│ 126.07 │
└──────────────────────────────────────────────────────────┘