次の方法で共有


SqlGeography.STLineFromText メソッド

インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、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 STLineFromText ( _
    lineStringTaggedText As SqlChars, _
    srid As Integer _
) As SqlGeography
'使用
Dim lineStringTaggedText As SqlChars 
Dim srid As Integer 
Dim returnValue As SqlGeography 

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

パラメーター

  • srid
    型: System.Int32
    返される SqlGeography の LineString インスタンスの SRID (Spatial Reference ID) を表す int 式です。

戻り値

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

説明

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

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間