ST_XMax¶
Returns the maximum X coordinate of a geometry’s bounding box.
Usage¶
double ST_XMax(geom: geometry)
Arguments¶
- geom (geometry): Input geometry
Examples¶
SELECT ST_XMax(ST_GeomFromText('LINESTRING(0 0, 5 4)'));
┌────────────────────────────────────────────────────────┐
│ st_xmax(st_geomfromtext(Utf8("LINESTRING(0 0, 5 4)"))) │
│ float64 │
╞════════════════════════════════════════════════════════╡
│ 5.0 │
└────────────────────────────────────────────────────────┘