次の方法で共有


SqlGeography.Point メソッド

Point インスタンスの x 値と y 値、および SRID (spatial reference identifier) を基に、Point インスタンスを表す SqlGeography インスタンスを構築します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

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

returnValue = SqlGeography.Point(latitude, _
    longitude, srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Point(
    double latitude,
    double longitude,
    int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ Point(
    double latitude, 
    double longitude, 
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point : 
        latitude:float * 
        longitude:float * 
        srid:int -> SqlGeography
public static function Point(
    latitude : double, 
    longitude : double, 
    srid : int
) : SqlGeography

パラメーター

  • latitude
    型: System.Double
    生成される Point の x 座標を表す double です。
  • longitude
    型: System.Double
    生成される Point の y 座標を表す double です。
  • srid
    型: System.Int32
    返される geography インスタンスの SRID を表す int 式です。

戻り値

型: Microsoft.SqlServer.Types.SqlGeography
指定した経度、緯度、および SRID の値に基づいて構築された SqlGeography インスタンスです。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間