ST_Rast2WorldCoord

更新时间:
复制 MD 格式

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, geometry geom);

Parameters

ParameterDescription
raster_objThe raster object.
pyramidLevelThe pyramid level.
rowThe row number of the cell.
columnThe column number of the cell.
geomThe geometry to convert. The x coordinate represents the column number in the raster, and the y coordinate represents the row number.

Usage notes

The raster object must have a valid spatial reference system identifier (SRID).

Example

Select ST_Rast2WorldCoord(raster_obj, 0, 0, 0) from raster_table;