语言

SqlGeography.Point(Double, Double, Int32) 方法

定义

SqlGeography从其 x 和 y 值和空间引用 ID(SRID)构造表示点实例的实例。

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeography Point(double latitude, double longitude, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member Point : double * double * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function Point (latitude As Double, longitude As Double, srid As Integer) As SqlGeography

参数

latitude
Double

一个双精度值,表示所生成的点的 x 坐标。

longitude
Double

一个双精度值,表示所生成的点的 y 坐标。

srid
Int32

一个 int 表达式,表示要返回的地理实例的 SRID。

返回

SqlGeography从指定的纬度、经度和 SRID 值构造的实例。

属性

适用于