Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.44 KB

ststartpoint-geography-data-type.md

File metadata and controls

54 lines (41 loc) · 1.44 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom f1_keywords helpviewer_keywords dev_langs
STStartPoint (geography Data Type)
STStartPoint (geography Data Type)
MladjoA
mlandzic
03/14/2017
sql
t-sql
reference
ignite-2024
STStartPoint_TSQL
STStartPoint (geography Data Type)
STStartPoint method
TSQL

STStartPoint (geography Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

Returns the start point of a geography instance.

Syntax

  
.STStartPoint ( )  

Return Types

[!INCLUDEssNoVersion] return type: geography

CLR return type: SqlGeography

Open Geospatial Consortium (OGC) type: Point

Remarks

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

Examples

The following example creates a LineString instance and uses STStartPoint() to retrieve the start point of the instance.

DECLARE @g geography;  
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);  
SELECT @g.STStartPoint().ToString();  

See Also

OGC Methods on Geography Instances