STEndpoint (geography データ型)
geography インスタンスの終点を返します。
構文
.STEndPoint ( )
戻り値の型
SQL Server の戻り値の型 : geography
CLR の戻り値の型 : SqlGeography
Open Geospatial Consortium (OGC) の型 : Point
説明
STEndPoint() は、STPointN(x.STNumPoints()) と同じです。
このメソッドは、空の geography インスタンスに対して呼び出された場合は NULL を返します。
例
STGeomFromText() で LineString インスタンスを作成し、STEndPoint() を使用して、LineString の終点を取得する例を次に示します。
DECLARE @g geography;
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);
SELECT @g.STEndPoint().ToString();