STStartPoint (geography データ型)

geography インスタンスの始点を返します。

構文

.STStartPoint ( )

戻り値の型

SQL Server の戻り値の型 : geography

CLR の戻り値の型 : SqlGeography

Open Geospatial Consortium (OGC) の型 : Point

説明

STStartPoint() は、STPointN(1) と同じです。

LineString インスタンスを作成し、STStartPoint() を使用してこのインスタンスの始点を取得する例を次に示します。

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

関連項目

その他の技術情報