ST_ScaleX

更新时间:
复制 MD 格式

Returns the pixel width of a raster object on the X scale in the spatial reference system.

Prerequisites

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

Syntax

float8 ST_ScaleX(raster raster_obj)

Parameters

ParameterDescription
raster_objThe raster object.

Examples

Query the X-axis and Y-axis pixel sizes of all raster objects in a table:

select st_scalex(rast), st_scaley(rast)
from raster_table;

Result:

 st_scalex | st_scaley
-----------+-----------
       1.3 |       0.3