This function returns the maximum Y-coordinate value of the specified raster object.

Syntax

float8 ST_YMax(raster raster_obj)

Parameters

Parameter Description
raster_obj The name of the raster object.

Description

If the raster object has been georeferenced, this function returns the maximum Y-coordinate value of the raster object. Otherwise, this function returns -1.

Examples

select st_ymax(rast)
from raster_table;

 st_ymax  
----------
      31