Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.37 KB

lat-geography-data-type.md

File metadata and controls

51 lines (39 loc) · 1.37 KB
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
Lat
Lat_TSQL
Lat method
TSQL

Lat (geography Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

The latitude property of the geography instance.

Syntax

.Lat  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

Return Types

[!INCLUDEssNoVersion] type: float

CLR type: SqlDouble

Remarks

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.

Examples

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;  

See Also

Extended Methods on Geography Instances