- Categories:
ST_XMAX¶
Returns the maximum longitude (X coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object.
Syntax¶
Arguments¶
geography_or_geometry_expressionThe argument must be an expression of type GEOGRAPHY or GEOMETRY.
Returns¶
Returns a REAL value.
Usage notes¶
If the geospatial object is on the antimeridian or crosses it, the function returns 180.
Examples¶
GEOGRAPHY examples¶
This shows a simple use of the ST_XMIN, ST_XMAX, ST_YMIN, and ST_YMAX functions: