Skip to main content
Returns the maximum X coordinate of a geometry ST_XMax

Signatures

ST_XMax (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

A numeric value.

Example

SELECT ST_XMax(ST_GeomFromText('POLYGON ((-1 -11, 0 10, 1 11, 2 12, -1 -11))'))
2