SpatialEdmFunctions.SpatialRelate(DbExpression, DbExpression, DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'SpatialRelate' function with the specified arguments, which must have Edm.Geometry and string result types. The result type of the expression is 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

Parameters

geometryValue1
DbExpression

An expression that specifies the first geometry value.

geometryValue2
DbExpression

An expression that specifies the geometry value that should be compared with geometryValue1.

intersectionPatternMatrix
DbExpression

An expression that specifies the text representation of the Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern used to compare geometryValue1 and geometryValue2.

Returns

A new DbFunctionExpression that returns a Boolean value indicating whether geometryValue1 is spatially related to geometryValue2 according to the spatial relationship designated by intersectionPatternMatrix.

Exceptions

geometryValue1 geometryValue2 intersectionPatternMatrix

geometryValue1 geometryValue2 intersectionPatternMatrix

Applies to