ST_StartPoint¶
Returns the start point of a linestring geometry.
Usage¶
geometry ST_StartPoint(geom: geometry)
Arguments¶
- geom (geometry): Input geometry
Examples¶
SELECT ST_StartPoint(
ST_GeomFromText('LINESTRING(100 150, 50 60, 70 80, 160 170)')
);
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_startpoint(st_geomfromtext(Utf8("LINESTRING(100 150, 50 60, 70 80, 160 17 │
│ 0)")))… │
╞══════════════════════════════════════════════════════════════════════════════╡
│ POINT(100 150) │
└──────────────────────────────────────────────────────────────────────────────┘