ST_XMAX
functionsupportedCore SQL functionsReturns the maximum longitude (X coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object.
Syntax
ST_XMAX( <geography_or_geometry_expression> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_or_geometry_expression | required | The 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.