インスタンスに格納されている Z (標高) 値および M (メジャー) 値で補完された、Open Geospatial Consortium (OGC) の Well-Known Text (WKT) 表現を基に geography インスタンスを返します。
名前空間: Microsoft.SqlServer.Types
アセンブリ: Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)
構文
'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function STGeomCollFromText ( _
geometryCollectionTaggedText As SqlChars, _
srid As Integer _
) As SqlGeography
'使用
Dim geometryCollectionTaggedText As SqlChars
Dim srid As Integer
Dim returnValue As SqlGeography
returnValue = SqlGeography.STGeomCollFromText(geometryCollectionTaggedText, _
srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography STGeomCollFromText(
SqlChars geometryCollectionTaggedText,
int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ STGeomCollFromText(
SqlChars^ geometryCollectionTaggedText,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member STGeomCollFromText :
geometryCollectionTaggedText:SqlChars *
srid:int -> SqlGeography
public static function STGeomCollFromText(
geometryCollectionTaggedText : SqlChars,
srid : int
) : SqlGeography
パラメーター
- geometryCollectionTaggedText
型: System.Data.SqlTypes.SqlChars
返される geography インスタンスの WKT 表現です。 geometrycollection_tagged_text は nvarchar(max) 式です。
- srid
型: System.Int32
返される geography インスタンスの SRID (spatial reference ID) を表す int 式です。
戻り値
型: Microsoft.SqlServer.Types.SqlGeography
geography インスタンスです。
説明
STGeomCollFromText によって返された geography インスタンスの OGC 型は、対応する WKT 入力に設定されます。
このメソッドは、入力が無効な場合に、ArgumentException をスローします。