STStartPoint (geometry)

STStartPoint (geometry)#

Returns the start point of a geometry instance.

Syntax#

.STStartPoint ()

Return type#

geometry

Remarks#

STStartPoint() is the equivalent of STPointN (1).

Example#

Create a LineString instance and use STStartPoint() to retrieve the start point of the instance.

DECLARE @g geometry;
SET @g = geometry::STGeomFromText('LINESTRING(0 0, 2 2, 1 0)', 0);
SELECT @g.STStartPoint().ToString();

See Also#