RS_RasterToWorldCoordX¶
Converts raster pixel coordinates to world X coordinate.
Usage¶
double RS_RasterToWorldCoordX(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_RasterToWorldCoordX(RS_Example(), 10, 20);
┌──────────────────────────────────────────────────────────┐
│ rs_rastertoworldcoordx(rs_example(),Int64(10),Int64(20)) │
│ float64 │
╞══════════════════════════════════════════════════════════╡
│ 80.08 │
└──────────────────────────────────────────────────────────┘