Share via


SqlSpatialServices.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 override bool Relate (System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry, string matrix);
override this.Relate : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry * string -> bool
Public Overrides 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.

Applies to