DbGeometry.Relate(DbGeometry, String) 方法

定义

基于给定的 Dimensionally Extended Nine-Intersection Model (DE-9IM) 交集模式来确定 DbGeometry 值 是否与给定的 DbGeometry 论据在空间上相关联。Determines whether this DbGeometry value spatially relates to the specified DbGeometry argument according to the given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.

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

参数

other
DbGeometry

应与该几何图形值比较关系的几何图形值。The geometry value that should be compared with this geometry value for relation.

matrix
String

字符串包含定义了关系的 (DE-9IM) 交集模式的文本表示形式的。A string that contains the text representation of the (DE-9IM) intersection pattern that defines the relation.

返回

Boolean

如果根据指定的相交式矩阵,此几何值与 other 相关,则为 true;否则为 falsetrue if this geometry value relates to other according to the specified intersection pattern matrix; otherwise false.

例外

other matrix

适用于