Skip to content

ST_XMin

Returns the minimum X coordinate of a geometry’s bounding box.

Usage

double ST_XMin(geom: geometry)

Arguments

  • geom (geometry): Input geometry

Examples

SELECT ST_XMin(ST_GeomFromText('LINESTRING(0 0, 5 4)'));
┌────────────────────────────────────────────────────────┐
│ st_xmin(st_geomfromtext(Utf8("LINESTRING(0 0, 5 4)"))) │
│                         float64                        │
╞════════════════════════════════════════════════════════╡
│                                                    0.0 │
└────────────────────────────────────────────────────────┘