SpatialEdmFunctions.SpatialRelate 方法

定義

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

C#
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);

參數

geometryValue1
DbExpression

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

geometryValue2
DbExpression

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

intersectionPatternMatrix
DbExpression

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

傳回

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

例外狀況

geometryValue1 geometryValue2 intersectionPatternMatrix

geometryValue1 geometryValue2 intersectionPatternMatrix

適用於

產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1