Export (0) Print
Expand All

Lat (geography Data Type)

The latitude property of the geography instance.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database\.

SQL Server 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;

Community Additions

© 2014 Microsoft