ST_YMax

更新时间: 2026-03-28 18:22:28

Returns the maximum Y coordinate of a raster object.

Syntax

float8 ST_YMax(raster raster_obj)
float8 ST_YMax(raster raster_obj, integer pyramid)

Parameters

ParameterDescription
raster_objThe raster whose maximum Y coordinate you want to obtain.
pyramidThe pyramid level of the raster. Valid values start from 0.

Description

For a georeferenced raster, ST_YMax returns the maximum Y coordinate in the raster's spatial reference system. For a non-georeferenced raster, it returns the raster height minus 1.

Example

SELECT ST_YMax(rast)
FROM raster_table;

Output:

 st_ymax
----------
      31
上一篇: ST_XMax 下一篇: ST_ChunkHeight
阿里云首页 云原生数据库 PolarDB 相关技术圈