次の方法で共有


SqlGeography.Parse メソッド

Open Geospatial Consortium (OGC) の Well-Known Text (WKT) 表現を基に SqlGeography インスタンスを返します。

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

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Parse ( _
    s As SqlString _
) As SqlGeography
'使用
Dim s As SqlString 
Dim returnValue As SqlGeography 

returnValue = SqlGeography.Parse(s)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Parse(
    SqlString s
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ Parse(
    SqlString s
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse : 
        s:SqlString -> SqlGeography
public static function Parse(
    s : SqlString
) : SqlGeography

パラメーター

戻り値

型: Microsoft.SqlServer.Types.SqlGeography
指定した WKT 表現に基づいて構築された SqlGeography 値です。

説明

Parse メソッドは、SRID (spatial reference ID) 4326 をパラメーターとして想定する点を除いて、STGeomFromText と同じです。 入力には、オプションとして Z (標高) 値と M (メジャー) 値が含まれる場合があります。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間