Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.49 KB

point-geometry-data-type.md

File metadata and controls

61 lines (46 loc) · 1.49 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom f1_keywords helpviewer_keywords dev_langs
Point (geometry Data Type)
Point (geometry Data Type)
MladjoA
mlandzic
08/03/2017
sql
t-sql
reference
ignite-2024
Point
Point_TSQL
Point (geometry Data Type)
TSQL

Point (geometry Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

Constructs a geometry instance representing a Point instance from its X and Y values and an SRID.

Syntax

  
Point ( X, Y, SRID )  

Arguments

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

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

SRID
Is an int expression representing the spatial reference ID (SRID) of the geometry instance you wish to return.

Return Types

[!INCLUDEssNoVersion] return type: geometry

CLR return type: SqlGeometry

Remarks

Examples

The following example uses Point() to create a geometry instance.

DECLARE @g geometry;   
SET @g = geometry::Point(1, 10, 0);  
SELECT @g.ToString();  

See Also

Extended Static Geometry Methods