Condividi tramite


STStartPoint (tipo di dati geography)

Restituisce il punto di inizio di un'istanza geography.

Sintassi

.STStartPoint ( )

Tipi restituiti

Tipo SQL Server restituito: geographygeography

Tipo CLR restituito: SqlGeographySqlGeography

Tipo OGC (Open Geospatial Consortium): PointPoint

Osservazioni

STStartPoint() equivale a STPointN(1).

Esempi

Nell'esempio seguente viene creata un'istanza LineString e viene utilizzato STStartPoint() per recuperare il punto di inizio dell'istanza.

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

Vedere anche

Altre risorse