title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lat (geography Data Type) |
Lat (geography Data Type) |
MladjoA |
mlandzic |
03/14/2017 |
sql |
t-sql |
reference |
|
|
|
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]
The latitude property of the geography instance.
.Lat
[!INCLUDEsql-server-tsql-previous-offline-documentation]
[!INCLUDEssNoVersion] type: float
CLR type: SqlDouble
In the OpenGIS model, Lat is defined only on geography instances composed of a single point. This property will return NULL if geography instances contain more than a single point. This property is precise and read-only.
This example creates a point and returns the latitude of the point.
DECLARE @g geography;
SET @g = geography::STGeomFromText('POINT(-122.34900 47.65100)', 4326);
SELECT @g.Lat;