Share via


DbSpatialServices.Relate(DbGeometry, DbGeometry, String) 方法

定义

基于给定的 Dimensionally Extended Nine-Intersection Model (DE-9IM) 交集模式来确定相关两个给定的 DbGeometry 值是否相交。

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

参数

geometryValue
DbGeometry

第一个几何图形值。

otherGeometry
DbGeometry

应与第一个几何图形值比较关系的几何图形值。

matrix
String

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

返回

如果根据指定的相交式矩阵,此 geometryValue 值与 otherGeometry 相关,则为 true;否则为 false

例外

geometryValue otherGeometry matrix

geometryValue otherGeometry

适用于