STEndPoint(geography 데이터 형식)

적용 대상:SQL ServerAzure SQL DatabaseAzure SQL Managed Instance

지리 인스턴스의 끝점을 반환합니다 .

Syntax

  
.STEndPoint ( )  

참고 항목

SQL Server 2014(12.x) 및 이전 버전에 대한 Transact-SQL 구문을 보려면 이전 버전 설명서를 참조 하세요.

반환 형식

SQL Server 반환 형식: geography

CLR 반환 형식: SqlGeography

OGC(Open Geospatial Consortium) 형식: Point

설명

STEndPoint()는 STPointN(x.STNumPoints``())동일합니다.

이 메서드는 비어 있는 geography 인스턴스에서 호출되면 Null을 반환합니다.

예제

다음 예에서는 LineString를 사용하여 STGeomFromText() 인스턴스를 만들고 STEndPoint()를 사용하여 LineString의 끝점을 검색합니다.

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

참고 항목

Geography 인스턴스의 OGC 메서드