Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.94 KB

point-geography-data-type.md

File metadata and controls

61 lines (47 loc) · 1.94 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
Point (geography Data Type)
Point (geography Data Type)
MladjoA
mlandzic
10/10/2019
sql
t-sql
reference
Point
Point_TSQL
Point method
Point (geography Data Type)
TSQL

Point (geography Data Type)

[!INCLUDE SQL Server 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).

Syntax

  
Point ( Lat, Long, SRID )  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

Arguments

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.

Return Types

[!INCLUDEssNoVersion] return type: geography

CLR return type: SqlGeography

Examples

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