Returns the minimum X-coordinate of a raster object.
Syntax
float8 ST_XMin(raster raster_obj)Parameters
| Parameter | Description |
|---|---|
raster_obj | The raster object to query. |
Usage notes
If the raster object is georeferenced, the function returns its minimum X-coordinate (the left boundary of the bounding box).
If the raster object is not georeferenced, the function returns
0.
Examples
select ST_XMin(rast)
from raster_table;Expected output:
st_xmin
----------
120