Condividi tramite


STEndpoint (tipo di dati geometry)

Restituisce il punto di fine di un'istanza geometry.

Sintassi

.STEndPoint ( )

Tipi restituiti

SQL Server tipo restituito: geometry

Tipo CLR restituito: SqlGeometry

Tipo OGC (Open Geospatial Consortium): Point

Osservazioni

STEndPoint() è equivalente a STPointN (x.NumPoints()).

Se chiamato su un'istanza geometry 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 geometry;
SET @g = geometry::STGeomFromText('LINESTRING(0 0, 2 2, 1 0)', 0);
SELECT @g.STEndPoint().ToString();

Vedere anche

Altre risorse

Metodi OGC sulle istanze di geometria