geography::Point
static constructor Point (called as type::Point(...))
What changes
- Input
- WKT, WKB, GML or coordinates and SRID
- Output or change
- spatial instance
- Return type
- SQL Server return type: geography CLR return type: SqlGeography
Syntax at a glance
Point ( Lat, Long, SRID )
Work example
Use geography.Point to construct a point from coordinate values.
For geometry pass X then Y. For geography pass latitude then longitude and set the SRID. Keep the geography type and SRID in the review.
Check your work Point takes latitude first and longitude second; the returned spatial reference is 4326.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT geography::Point(47.651, -122.349, 4326).Lat AS latitude, geography::Point(47.651, -122.349, 4326).Long AS longitude, geography::Point(47.651, -122.349, 4326).STSrid AS srid;
Open Microsoft Learn for full syntax, permissions, and details for your version.