SQL Flow Field Guide

geography.STStartPoint

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

spatial method STStartPoint (instance.STStartPoint(...))

What changes

Input
spatial instance (and arguments)
Output or change
geography
Return type
SQL Server return type: geography CLR return type: SqlGeography Open Geospatial Consortium (OGC) type: Point

Syntax at a glance

.STStartPoint ( )

Work example

Use geography.STStartPoint to read the first point of a line.

Keep source point order when direction has meaning. Keep the geography type and SRID in the review.

Check your work The returned point is the route's first coordinate, longitude -122.360 and latitude 47.656.

Practice SQL

Open in SQL Flow

Open the SQL for a walkthrough. Run the example in SQL Server to check its result.

SELECT r.shape.STStartPoint().STAsText() AS route_start_wkt FROM (VALUES (geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326))) AS r(shape);

Open Microsoft Learn for full syntax, permissions, and details for your version.