This function computes the pixel coordinates of a cell by using an inverse affine transformation formula based on the world coordinates and pyramid level of the cell.

Syntax

point ST_World2RastCoord(raster raster_obj, integer pyramidLevel, point coord);

Parameters

Parameter Description
raster_obj The raster object.
pyramidLevel The pyramid level.
coord The world space.

Description

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

Examples

Select ST_World2RastCoord(raster_obj, 0, '(27.9,128.6)') from raster_table;