DbGeometry.Relate(DbGeometry, String) 方法

定义

基于给定的 Dimensionally Extended Nine-Intersection Model (DE-9IM) 交集模式来确定 DbGeometry 值 是否与给定的 DbGeometry 论据在空间上相关联。

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

参数

other
DbGeometry

应与该几何图形值比较关系的几何图形值。

matrix
String

字符串包含定义了关系的 (DE-9IM) 交集模式的文本表示形式的。

返回

如果此几何图形值根据指定的交集模式矩阵与其他几何图形值相关,则为 true;否则为 false。

例外

othermatrix

适用于