Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
SQL database in Microsoft Fabric
Constructs a geography instance representing a Point instance from its latitude and longitude values and a spatial reference ID (SRID).
Point ( Lat, Long, SRID )
Lat
Is a float expression representing the y-coordinate of the Point being generated.
Long
Is a float expression representing the x-coordinate of the Point being generated. For more information on valid latitude and longitude values, see Point.
SRID
Is an int expression representing the Spatial Reference Identifier of the geography instance you wish to return.
Note
Arguments for the Point (geography Data Type) method have coordinates reversed compared to WKT.
SQL Server return type: geography
CLR return type: SqlGeography
The following example uses Point()
to create a geography
instance.
DECLARE @g geography;
SET @g = geography::Point(47.65100, -122.34900, 4326)
SELECT @g.ToString();
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today