DbSpatialServices.Relate Method (DbGeometry, DbGeometry, String)

 

Determines whether the two given DbGeometry values are spatially related according to the given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

public abstract bool Relate(
	DbGeometry geometryValue,
	DbGeometry otherGeometry,
	string matrix
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The first geometry value.

otherGeometry
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value that should be compared with the first geometry value for relation.

matrix
Type: System.String

A string that contains the text representation of the (DE-9IM) intersection pattern that defines the relation.

Return Value

Type: System.Boolean

true if this geometryValue value relates to otherGeometry according to the specified intersection pattern matrix; otherwise, false.

Exception Condition
ArgumentNullException

geometryValue , otherGeometry or matrix is null.

ArgumentException

geometryValue or otherGeometry is not compatible with this spatial services implementation.