Point (geography Data Type)
Applies to: SQL Server (all supported versions) Azure SQL Database Azure SQL Managed Instance
Constructs a geography instance representing a Point instance from its latitude and longitude values and a spatial reference ID (SRID).
Point ( Lat, Long, SRID )
To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.
Is a float expression representing the y-coordinate of the Point being generated.
Is a float expression representing the x-coordinate of the Point being generated. For more information on valid latitude and longitude values, see Point.
Is an int expression representing the Spatial Reference Identifier of the geography instance you wish to return.
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
DECLARE @g geography; SET @g = geography::Point(47.65100, -122.34900, 4326) SELECT @g.ToString();
Submit and view feedback for