All Products
Search
Document Center

PolarDB:ST_YMin

Last Updated:Mar 28, 2026

Returns the minimum Y-coordinate of a raster object.

Syntax

float8 ST_YMin(raster raster_obj)

Parameters

ParameterDescription
raster_objThe raster object to query.

Description

ST_YMin returns the minimum Y-coordinate of a raster object. If the raster object has not been georeferenced, ST_YMin returns 0.

Examples

The following example queries the minimum Y-coordinate from raster_table.

SELECT ST_YMin(rast) AS ymin
FROM raster_table;
  ymin
--------
    30

The value 30 indicates that the raster has been georeferenced. If the raster object has no georeference information, the function returns 0.

See also

  • ST_XMin: Returns the minimum X-coordinate of a raster object.

  • ST_YMax: Returns the maximum Y-coordinate of a raster object.

  • ST_XMax: Returns the maximum X-coordinate of a raster object.