This function returns the maximum X-coordinate value of the specified raster object.
Syntax
float8 ST_XMax(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 X-coordinate value of the raster object. Otherwise, this function returns -1.
Examples
select ST_XMax(rast)
from raster_table;
st_xmax
----------
121