Export (0) Print
Expand All
Expand Minimize

SqlGeography.Point Method

Constructs a SqlGeography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Point ( _
	latitude As Double, _
	longitude As Double, _
	srid As Integer _
) As SqlGeography
'Usage
Dim latitude As Double 
Dim longitude As Double 
Dim srid As Integer 
Dim returnValue As SqlGeography 

returnValue = SqlGeography.Point(latitude, _
	longitude, srid)

Parameters

latitude
Type: Double
A double that represents the x-coordinate of the Point being generated.
longitude
Type: Double
A double that represents the y-coordinate of the Point being generated.
srid
Type: Int32
An int expression that represents the SRID of the geography instance you wish to return.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography instance constructed from the specified latitude, longitude, and SRID values.

Community Additions

ADD
Show:
© 2015 Microsoft