SqlGeography.Point Method (Double, Double, Int32)

 

Applies To: SQL Server 2016 Preview

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)

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Point(
    double latitude,
    double longitude,
    int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ Point(
    double latitude,
    double longitude,
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point : 
        latitude:float *
        longitude:float *
        srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function Point (
    latitude As Double,
    longitude As Double,
    srid As Integer
) As SqlGeography

Parameters

  • latitude
    Type: System.Double

    A double that represents the x-coordinate of the Point being generated.

  • longitude
    Type: System.Double

    A double that represents the y-coordinate of the Point being generated.

  • srid
    Type: System.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.

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace

Return to top