geography.Lat
spatial method Lat (instance.Lat(...))
What changes
- Input
- spatial instance (and arguments)
- Output or change
- SQL Server type: float
- Return type
- SQL Server type: float CLR type: SqlDouble
Syntax at a glance
.Lat
Work example
Use geography.Lat to read latitude from a geography point.
Check the instance is a point and retain its SRID. Keep the geography type and SRID in the review.
Check your work The latitude is 47.651 degrees; Lat is defined for a geography Point.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT p.shape.Lat AS latitude_degrees FROM (VALUES (geography::Point(47.651, -122.349, 4326))) AS p(shape);
Open Microsoft Learn for full syntax, permissions, and details for your version.