SpatialEdmFunctions.SpatialRelate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression 一個,呼叫典型的「SpatialRelate」函式,並指定參數,且必須有 Edm.Geometry 和字串結果型別。 表達式的結果類型為Edm.Boolean。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialRelate(this System.Data.Entity.Core.Common.CommandTrees.DbExpression geometryValue1, System.Data.Entity.Core.Common.CommandTrees.DbExpression geometryValue2, System.Data.Entity.Core.Common.CommandTrees.DbExpression intersectionPatternMatrix);
static member SpatialRelate : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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
一個表達式,指定用於比較 geometryValue1 與 geometryValue2 的維度擴展 Nine-Intersection 模型(DE-9IM)交叉模式的文字表示。
傳回
一個新的 DbFunctionExpression,回傳一個布林值,指示 geometryValue1 是否與 geometryValue2 在空間上相關,依據 intersectionPatternMatrix 所指定的空間關係。