Condividi tramite


STEndpoint (tipo di dati geography)

Restituisce il punto di fine di un'istanza geography.

Sintassi

.STEndPoint ( )

Tipi restituiti

Tipo SQL Server restituito: geographygeography

Tipo CLR restituito: SqlGeographySqlGeography

Tipo OGC (Open Geospatial Consortium): PointPoint

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

Vedere anche

Altre risorse