Share via


DbSpatialServices.Relate(DbGeometry, DbGeometry, String) Method

Definition

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

public abstract bool Relate (System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry, string matrix);
abstract member Relate : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry * string -> bool
Public MustOverride Function Relate (geometryValue As DbGeometry, otherGeometry As DbGeometry, matrix As String) As Boolean

Parameters

geometryValue
DbGeometry

The first geometry value.

otherGeometry
DbGeometry

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

matrix
String

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

Returns

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

Exceptions

geometryValue , otherGeometry or matrix is null.

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

Applies to