Open Geospatial Consortium (OGC) の Well-Known Text (WKT) 表現を基に SqlGeometry インスタンスを返します。
名前空間: Microsoft.SqlServer.Types
アセンブリ: Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)
構文
'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Parse ( _
s As SqlString _
) As SqlGeometry
'使用
Dim s As SqlString
Dim returnValue As SqlGeometry
returnValue = SqlGeometry.Parse(s)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Parse(
SqlString s
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeometry^ Parse(
SqlString s
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse :
s:SqlString -> SqlGeometry
public static function Parse(
s : SqlString
) : SqlGeometry
パラメーター
- s
型: System.Data.SqlTypes.SqlString
返される SqlGeometry インスタンスの WKT 表現を表します。
戻り値
型: Microsoft.SqlServer.Types.SqlGeometry
指定した WKT 表現から解釈される SqlGeometry インスタンスです。 s が nullNULL 参照 (Visual Basic では Nothing) の場合は、nullNULL 参照 (Visual Basic では Nothing) を返します。
説明
Parse は、パラメーターとして SRID (spatial reference ID) の値を 0 と想定している点を除いて、STGeomFromText と同じです。
入力には、オプションとして Z (標高) 値と M (メジャー) 値が含まれる場合があります。
このメンバーは static です。