ST_YMin

更新时间:
复制 MD 格式

Returns the minimum Y-coordinate value of a raster object.

Syntax

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

Parameters

ParameterDescription
raster_objThe raster object to query.
pyramidThe pyramid level to query. Values start from 0.

Usage notes

  • If the raster object is georeferenced, the function returns its minimum Y-coordinate value.

  • If the raster object is not georeferenced, the function returns 0.

Examples

Query the minimum Y-coordinate value of the rast column in raster_table:

SELECT ST_YMin(rast)
FROM raster_table;

Output:

 st_ymin
----------
      30

What's next