Returns the maximum X-coordinate value of a raster object.
Syntax
float8 ST_XMax(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The name of the raster object. |
Description
ST_XMax returns the maximum X-coordinate value of the raster object.
If the raster object has not been georeferenced,ST_XMaxreturns-1.
Examples
Georeferenced raster — returns the maximum X-coordinate:
SELECT ST_XMax(rast)
FROM raster_table;Result:
st_xmax
----------
121