This function computes the world coordinates of a cell using an affine transformation formula based on the pixel coordinates and pyramid level of the cell.
Syntax
point ST_Rast2WorldCoord(raster raster_obj, integer pyramidLevel, integer row, integer column);
geometry ST_Rast2WorldCoord(raster raster_obj, integer pyramidLevel, geometrygeom);Parameters
Parameter name | Description |
raster_obj | The target raster object. |
pyramidLevel | The pyramid level. |
row | Line number. |
column | Column number |
geom | The geometry object to transform. The x-coordinate represents the column number of the pixel, and the y-coordinate represents the row number of the pixel. |
Description
The raster object must have a valid spatial reference system identifier (SRID).
Example
Select ST_Rast2WorldCoord(raster_obj, 0, 0, 0) from raster_table;该文章对您有帮助吗?