次の方法で共有


SqlGeography.GeomFromGml メソッド

Geography Markup Language (GML) の SQL Server サブセットによる表現を指定して SqlGeography インスタンスを構築します。

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

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function GeomFromGml ( _
    xml As SqlXml, _
    srid As Integer _
) As SqlGeography
'使用
Dim xml As SqlXml 
Dim srid As Integer 
Dim returnValue As SqlGeography 

returnValue = SqlGeography.GeomFromGml(xml, _
    srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography GeomFromGml(
    SqlXml xml,
    int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ GeomFromGml(
    SqlXml^ xml, 
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member GeomFromGml : 
        xml:SqlXml * 
        srid:int -> SqlGeography
public static function GeomFromGml(
    xml : SqlXml, 
    srid : int
) : SqlGeography

パラメーター

  • srid
    型: System.Int32
    返される geography インスタンスの SRID (spatial reference ID) を表す int 式です。

戻り値

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

説明

このメソッドは、入力が適切な形式でない場合に、FormatException をスローします。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間