ST_ScaleY

更新时间:
复制 MD 格式

Queries the pixel width of a raster object on the Y scale in the spatial reference system.

Prerequisites

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

Syntax

float8 ST_ScaleY(raster raster_obj)

Parameters

ParameterDescription
raster_objThe name of the raster object.

Examples

SELECT st_scalex(rast), st_scaley(rast)
FROM raster_table;

Output:

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