SpatialEdmFunctions.SpatialRelate Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen SpatialRelate med de angivna argumenten, som måste ha resultattyperna Edm.Geometry och sträng. Resultattypen för uttrycket är 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

Parametrar

geometryValue1
DbExpression

Ett uttryck som anger det första geometrivärdet.

geometryValue2
DbExpression

Ett uttryck som anger det geometrivärde som ska jämföras med geometryValue1.

intersectionPatternMatrix
DbExpression

Ett uttryck som anger textrepresentationen av skärningsmönstret Dimensionally Extended Nine-Intersection Model (DE-9IM) som används för att jämföra geometryValue1 och geometryValue2.

Returer

En ny DbFunctionExpression som returnerar ett booleskt värde som anger om geometryValue1 är rumsligt relaterat till geometryValue2 enligt den rumsliga relation som anges av intersectionPatternMatrix.

Undantag

geometryValue1 geometryValue2 intersectionPatternMatrix

geometryValue1 geometryValue2 intersectionPatternMatrix

Gäller för