呼び出し元の SqlGeometry が指定された SqlGeometry に関連しているかどうかを示します。
名前空間: Microsoft.SqlServer.Types
アセンブリ: Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)
構文
'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STRelate ( _
other As SqlGeometry, _
intersectionPatternMatrix As String _
) As SqlBoolean
'使用
Dim instance As SqlGeometry
Dim other As SqlGeometry
Dim intersectionPatternMatrix As String
Dim returnValue As SqlBoolean
returnValue = instance.STRelate(other, _
intersectionPatternMatrix)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STRelate(
SqlGeometry other,
string intersectionPatternMatrix
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STRelate(
SqlGeometry^ other,
String^ intersectionPatternMatrix
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STRelate :
other:SqlGeometry *
intersectionPatternMatrix:string -> SqlBoolean
public function STRelate(
other : SqlGeometry,
intersectionPatternMatrix : String
) : SqlBoolean
パラメーター
- other
型: Microsoft.SqlServer.Types.SqlGeometry
STRelate を呼び出したインスタンスと比較される、別の SqlGeometry インスタンスです。
- intersectionPatternMatrix
型: System.String
交差モデルを示す string です。 この文字列は、2 つの SqlGeometry インスタンスの間にある、DE-9IM パターンのマトリックス デバイスで受け付けることができる値を含んでいる必要があります。
戻り値
型: System.Data.SqlTypes.SqlBoolean
任意の SqlGeometry インスタンスと別の SqlGeometry インスタンスとの間になんらかの関係がある場合は true を返します。ここでの関係は、Dimensionally Extended 9 Intersection Model (DE-9IM) パターンのマトリックス値で定義されます。関係がない場合は false を返します。
説明
2 つの SqlGeometry インスタンスの SRID (spatial reference ID) が一致しない場合、このメソッドは常に nullNULL 参照 (Visual Basic では Nothing) を返します。 このメソッドは、マトリックスが適切な形式でない場合に、ArgumentException をスローします。