STStartPoint (type de données geography)

S’applique à :SQL ServerAzure SQL DatabaseAzure SQL Managed Instance

Retourne le point de départ d’une instance geography.

Syntaxe

  
.STStartPoint ( )  

Remarque

Pour afficher la syntaxe Transact-SQL pour SQL Server 2014 (12.x) et versions antérieures, consultez la Documentation sur les versions antérieures.

Types de retour

Type de retour SQL Server : geography

Type de retour CLR : SqlGeography

Type OGC (Open Geospatial Consortium) : Point

Notes

STStartPoint() équivaut à STPointN(1).

Exemples

L'exemple suivant crée une instance LineString et utilise STStartPoint() pour extraire le point de départ de l'instance.

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

Voir aussi

Méthodes OGC sur des instances Geography