Condividi tramite


STEndPoint (tipo di dati geography)

Si applica a:SQL ServerDatabase SQL di AzureIstanza gestita di SQL di AzureDatabase SQL in Microsoft Fabric

Restituisce il punto di fine di un'istanza geography.

Syntax

  
.STEndPoint ( )  

Tipi restituiti

Tipo SQL Server restituito: geography

Tipo CLR restituito: SqlGeography

Tipo OGC (Open Geospatial Consortium): Point

Remarks

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

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

Examples

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();  

Vedere anche

Metodi OGC sulle istanze di geografia