Lat (tipo di dati geography)
Si applica a: SQL Server
database SQL di Azure
Istanza gestita di SQL di Azure
database SQL in Microsoft Fabric
Proprietà della latitudine dell'istanza geography.
Sintassi
.Lat
Tipi restituiti
Tipo SQL Server: float
Tipo CLR: SqlDouble
Osservazioni:
Nel modello OpenGIS, la proprietà Lat viene definita solo su istanze geography costituite da un unico punto. Questa proprietà restituirà Null se le istanze geography contengono più di un unico punto. La proprietà è precisa e di sola lettura.
Esempi
In questo esempio viene creato un punto e ne viene restituita la latitudine.
DECLARE @g geography;
SET @g = geography::STGeomFromText('POINT(-122.34900 47.65100)', 4326);
SELECT @g.Lat;