Point (geography Data Type)

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)yesAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Constructs a geography instance representing a Point instance from its latitude and longitude values and a spatial reference ID (SRID).

|Applies to: SQL Server ( SQL Server 2008 through current version), Azure SQL Database (Initial release through current release).|


Point ( Lat, Long, SRID )  


Is a float expression representing the x-coordinate of the Point being generated.

Is a float expression representing the y-coordinate of the Point being generated. For more information on valid latitude and longitude values, see Point.

Is an int expression representing the SRID of the geography instance you wish to return.

Return Types

SQL Server return type: geography

CLR return type: SqlGeography


Arguments for the Point (geography Data Type) method have coordinates reversed compared to WKT.


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();  

See Also

Extended Static Geography Methods