Condividi tramite


STSrid (tipo di dati geography)

STSrid è un integer che rappresenta l'identificatore SRID dell'istanza.

Sintassi

.STSrid

Tipi restituiti

SQL Server Tipo: int

Tipo CLR: SqlInt32

Osservazioni

Questa proprietà può essere modificata.

Per ulteriori informazioni sugli identificatori SRID, vedere Identificatori SRID (Spatial Reference Identifier).

Esempi

Nel primo esempio viene creata un'istanza geography con il valore dell'identificatore SRID uguale a 4326 (WGS84) e viene utilizzato STSrid per confermare l'identificatore SRID.

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

Nel secondo esempio viene utilizzato STSrid per impostare il valore dell'identificatore SRID dell'istanza su 4267 (NAD27), quindi viene confermato il valore SRID modificato.

SET @g.STSrid = 4267;
SELECT @g.STSrid;

Vedere anche

Altre risorse