Share via


SpatialEdmFunctions.SpatialRelate 方法

定义

创建 DbFunctionExpression,它使用指定参数(参数必须具有 Edm.Geometry 和字符串结果类型)调用规范 'SpatialRelate' 函数。 表达式的结果类型为 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 的 Dimensionally Extended Nine-Intersection Model (DE-9IM) 交集模式的文本表示形式的表达式。

返回

一个新的 DbFunctionExpression,它返回依据 geometryValue1 指定的空间关系指示 geometryValue2 在空间上是否与 intersectionPatternMatrix 相关的布尔值。

例外

geometryValue1 geometryValue2 intersectionPatternMatrix

geometryValue1 geometryValue2 intersectionPatternMatrix

适用于