SpatialEdmFunctions.SpatialRelate 方法

定義

建立會使用指定之引數叫用標準 'SpatialRelate' 函式的 DbFunctionExpression,其中的引數必須具有 Edm.Geometry 和字串結果型別。 運算式的結果型別為 Edm.Boolean。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialRelate(System::Data::Common::CommandTrees::DbExpression ^ geometryValue1, System::Data::Common::CommandTrees::DbExpression ^ geometryValue2, System::Data::Common::CommandTrees::DbExpression ^ intersectionPatternMatrix);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialRelate (this System.Data.Common.CommandTrees.DbExpression geometryValue1, System.Data.Common.CommandTrees.DbExpression geometryValue2, System.Data.Common.CommandTrees.DbExpression intersectionPatternMatrix);
static member SpatialRelate : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialRelate (geometryValue1 As DbExpression, geometryValue2 As DbExpression, intersectionPatternMatrix As DbExpression) As DbFunctionExpression

參數

geometryValue1
DbExpression

指定第一個幾何值的運算式。

geometryValue2
DbExpression

運算式,指定要與 geometryValue1 比較的幾何值。

intersectionPatternMatrix
DbExpression

運算式,指定用於比較 geometryValue1geometryValue2 之維度延伸九交模型 (DE-9IM) 交集模式的文字表示。

傳回

傳回表示根據 geometryValue1 所指定之空間關聯性,geometryValue2 是否與 intersectionPatternMatrix 在空間上有關聯之布林值的新 DbFunctionExpression。

例外狀況

geometryValue1 geometryValue2 intersectionPatternMatrix

geometryValue1 geometryValue2 intersectionPatternMatrix

適用於