Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Point (geometry Data Type)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

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

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


Point ( X, Y, SRID )

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.

SQL Server return type: geometry

CLR return type: SqlGeometry

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

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

Community Additions

ADD
Show:
© 2015 Microsoft