Condividi tramite


STEndPoint (tipo di dati geography)

Si applica a: SQL Server database SQL di Azure Istanza gestita di SQL di Azure

Restituisce il punto di fine di un'istanza geography.

Sintassi

  
.STEndPoint ( )  

Nota

Per visualizzare la sintassi Transact-SQL per SQL Server 2014 (12.x) e versioni precedenti, vedere Documentazione delle versioni precedenti.

Tipi restituiti

Tipo SQL Server restituito: geography

Tipo CLR restituito: SqlGeography

Tipo OGC (Open Geospatial Consortium): Point

Osservazioni:

STEndPoint() equivale a STPointN(x.STNumPoints``()).

Se chiamato su un'istanza geography vuota, questo metodo restituisce Null.

Esempi

Nell'esempio seguente viene creata un'istanza LineString con STGeomFromText() e viene utilizzato STEndPoint() per recuperare il punto di fine di LineString.

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

Vedi anche

Metodi OGC sulle istanze di geografia