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

定義

判斷兩個給定 DbGeometry 值是否依據給定的維度擴展 Nine-Intersection 模型(DE-9IM)交叉模式在空間上相關。

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)交集圖案的文字表示的字串。

傳回

true 若此 geometryValue 值依照指定的交叉模式矩陣對應於 otherGeometry ;否則 false

例外狀況

geometryValue otherGeometry matrix

geometryValue otherGeometry

適用於