Freigeben über


STStartPoint (geography-Datentyp)

Gilt für:SQL ServerAzure SQL-DatenbankVerwaltete Azure SQL-InstanzSQL-Datenbank in Microsoft Fabric

Gibt den Startpunkt einer geography-Instanz zurück.

Syntax

  
.STStartPoint ( )  

Rückgabetypen

SQL Server-Rückgabetyp: geography

CLR-Rückgabetyp: SqlGeography

Open Geospatial Consortium (OGC)-Typ: Point

Remarks

STStartPoint() entspricht STPointN(1).

Examples

Im folgenden Beispiel wird eine LineString -Instanz erstellt und STStartPoint() verwendet, um den Ausgangspunkt der Instanz abzurufen.

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

Siehe auch

OGC-Methoden für geography-Instanzen